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

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

Issue 2816403002: test all
Patch Set: fix sharedworker 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 d302289a0ac2ef50bc0465e4c8ddbf27da00b688..5f793fb1885a29756908692e63e1613a32d8f1f1 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 { kFetchMainResource, kFetchSubresource };
@@ -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,12 +198,17 @@ class PLATFORM_EXPORT FetchContext
return priority;
}
+ virtual RefPtr<WebTaskRunner> TimerTaskRunner() const { return nullptr; }
virtual RefPtr<WebTaskRunner> LoadingTaskRunner() const { return nullptr; }
PlatformProbeSink* GetPlatformProbeSink() const {
return platform_probe_sink_;
}
+ virtual Resource::ResourceCallback* GetResourceCallback() { return nullptr; }
+
+ virtual WebURLLoader* CreateURLLoader() { return nullptr; }
+
protected:
FetchContext();

Powered by Google App Engine
This is Rietveld 408576698