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

Unified Diff: third_party/WebKit/public/platform/WebWorkerFetchContext.h

Issue 2807533003: [WIP2] off-main-thread loading
Patch Set: call set_is_secure_context in EmbeddedSharedWorkerStub::CreateWorkerFetchContext() 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/public/platform/WebWorkerFetchContext.h
diff --git a/third_party/WebKit/public/platform/WebWorkerFetchContext.h b/third_party/WebKit/public/platform/WebWorkerFetchContext.h
index d453fde3190d68f6d33d5c7db1c853861d09dd31..21aad50a7b66947bdefe4a5735e36e2d61d3ce22 100644
--- a/third_party/WebKit/public/platform/WebWorkerFetchContext.h
+++ b/third_party/WebKit/public/platform/WebWorkerFetchContext.h
@@ -11,6 +11,7 @@ class SingleThreadTaskRunner;
namespace blink {
+class WebURL;
class WebURLLoader;
class WebURLRequest;
@@ -36,6 +37,14 @@ class WebWorkerFetchContext {
// Whether the fetch context is controlled by a service worker.
virtual bool IsControlledByServiceWorker() const = 0;
+ virtual int64_t ServiceWorkerID() const { return 0; };
+ virtual void DidRunContentWithCertificateErrors(const WebURL& url) {}
+ virtual void DidDisplayContentWithCertificateErrors(const WebURL& url) {}
+
+ // Set the information about the resource fetching context. Must be called on
+ // the main thread.
+ virtual void SetAppCacheHostID(int id) {}
+ virtual void SetDataSaverEnabled(bool flag) {}
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/public/platform/WebApplicationCacheHost.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698