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

Unified Diff: third_party/WebKit/public/web/WebSharedWorkerClient.h

Issue 2804843005: Implement the infrastructure of creating WorkerFetchContext in worker global scope. (Closed)
Patch Set: s/WebScheduler.h/web_scheduler.h/ 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/web/WebSharedWorkerClient.h
diff --git a/third_party/WebKit/public/web/WebSharedWorkerClient.h b/third_party/WebKit/public/web/WebSharedWorkerClient.h
index 46f8cf1d1aa872e73235f5f04264b46c42685a57..93ac90f52e40bf3689566bbf2b9fda00e4566d34 100644
--- a/third_party/WebKit/public/web/WebSharedWorkerClient.h
+++ b/third_party/WebKit/public/web/WebSharedWorkerClient.h
@@ -32,6 +32,7 @@
#define WebSharedWorkerClient_h
#include "public/platform/WebMessagePortChannel.h"
+#include "public/platform/WebWorkerFetchContext.h"
#include "public/web/WebDevToolsAgentClient.h"
namespace blink {
@@ -93,6 +94,14 @@ class WebSharedWorkerClient {
CreateDevToolsMessageLoop() {
return nullptr;
}
+
+ // Returns a new WebWorkerFetchContext for the shared worker. Ownership of the
+ // returned object is transferred to the caller. This is used only when
+ // off-main-thread-fetch is enabled.
+ virtual std::unique_ptr<WebWorkerFetchContext> CreateWorkerFetchContext(
+ WebServiceWorkerNetworkProvider*) {
+ return nullptr;
+ }
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698