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

Unified Diff: third_party/WebKit/public/web/WebFrameClient.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/WebFrameClient.h
diff --git a/third_party/WebKit/public/web/WebFrameClient.h b/third_party/WebKit/public/web/WebFrameClient.h
index 7e9100daa5d77423088282c0b5f79b9fd746f9c6..0f1458ae1c430752bde724b5870a72f355bc94cb 100644
--- a/third_party/WebKit/public/web/WebFrameClient.h
+++ b/third_party/WebKit/public/web/WebFrameClient.h
@@ -65,6 +65,7 @@
#include "public/platform/WebStorageQuotaType.h"
#include "public/platform/WebURLError.h"
#include "public/platform/WebURLRequest.h"
+#include "public/platform/WebWorkerFetchContext.h"
#include "v8/include/v8.h"
namespace blink {
@@ -146,6 +147,13 @@ class BLINK_EXPORT WebFrameClient {
return 0;
}
+ // Returns a new WebWorkerFetchContext for a dedicated 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() {
+ return nullptr;
+ }
+
// Create a new WebPopupMenu. In the "createExternalPopupMenu" form, the
// client is responsible for rendering the contents of the popup menu.
virtual WebExternalPopupMenu* CreateExternalPopupMenu(
« no previous file with comments | « third_party/WebKit/public/platform/WebWorkerFetchContext.h ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698