Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1089)

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/FetchContext.h

Issue 2701753003: [WIP] off-main-thread loading
Patch Set: small fix Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/loader/fetch/FetchContext.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h b/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h
index cdffbbe78c9f5c7a1d8caebad61b4f045444a4eb..9479279067cee9375eace1768b6c165458df7a8d 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/FetchContext.h
@@ -52,6 +52,7 @@ class ResourceError;
class ResourceResponse;
class ResourceTimingInfo;
class WebTaskRunner;
+class WebURLLoader;
enum class WebCachePolicy;
enum FetchResourceType { FetchMainResource, FetchSubresource };
@@ -165,6 +166,8 @@ class PLATFORM_EXPORT FetchContext
virtual bool isControlledByServiceWorker() const { return false; }
virtual int64_t serviceWorkerID() const { return -1; }
+ virtual int applicationCacheHostID() const { return 0; }
+
virtual bool isMainFrame() const { return true; }
virtual bool defersLoading() const { return false; }
virtual bool isLoadComplete() const { return false; }
@@ -195,10 +198,15 @@ class PLATFORM_EXPORT FetchContext
return priority;
}
+ virtual RefPtr<WebTaskRunner> timerTaskRunner() const { return nullptr; }
virtual RefPtr<WebTaskRunner> loadingTaskRunner() const { return nullptr; }
PlatformProbeSink* platformProbeSink() const { return m_platformProbeSink; }
+ virtual Resource::ResourceCallback* resourceCallback() { return nullptr; }
+
+ virtual WebURLLoader* createURLLoader() { return nullptr; }
+
protected:
FetchContext();

Powered by Google App Engine
This is Rietveld 408576698