summaryrefslogtreecommitdiffstats
path: root/WebCore/loader/ResourceLoader.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/loader/ResourceLoader.h')
-rw-r--r--WebCore/loader/ResourceLoader.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/WebCore/loader/ResourceLoader.h b/WebCore/loader/ResourceLoader.h
index 29afbc1..0da76fb 100644
--- a/WebCore/loader/ResourceLoader.h
+++ b/WebCore/loader/ResourceLoader.h
@@ -54,7 +54,7 @@ namespace WebCore {
void cancel();
- virtual bool load(const ResourceRequest&);
+ virtual void init(const ResourceRequest&);
FrameLoader* frameLoader() const;
DocumentLoader* documentLoader() const { return m_documentLoader.get(); }
@@ -126,9 +126,12 @@ namespace WebCore {
virtual AsyncFileStream* createAsyncFileStream(FileStreamClient*);
#endif
+ const KURL& url() const { return m_request.url(); }
ResourceHandle* handle() const { return m_handle.get(); }
bool sendResourceLoadCallbacks() const { return m_sendResourceLoadCallbacks; }
+ bool reachedTerminalState() const { return m_reachedTerminalState; }
+
void setShouldBufferData(bool shouldBufferData);
protected:
@@ -137,12 +140,15 @@ namespace WebCore {
#if ENABLE(OFFLINE_WEB_APPLICATIONS)
friend class ApplicationCacheHost; // for access to request()
#endif
-
+ friend class ResourceLoadScheduler; // for access to start()
+ // start() actually sends the load to the network (unless the load is being
+ // deferred) and should only be called by ResourceLoadScheduler or setDefersLoading().
+ void start();
+
virtual void didCancel(const ResourceError&);
void didFinishLoadingOnePart(double finishTime);
const ResourceRequest& request() const { return m_request; }
- bool reachedTerminalState() const { return m_reachedTerminalState; }
bool cancelled() const { return m_cancelled; }
bool defersLoading() const { return m_defersLoading; }