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

Unified Diff: content/browser/service_worker/service_worker_context_wrapper.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: content/browser/service_worker/service_worker_context_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index 84d8a5807adab482a4607ff93d436453da05b776..7fe964f5dd32c4d078dc7fe0be689639e5f6da74 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -16,6 +16,7 @@
#include "base/memory/ref_counted.h"
#include "content/browser/service_worker/service_worker_context_core.h"
#include "content/common/content_export.h"
+#include "content/common/worker_url_loader_factory_provider.mojom.h"
#include "content/public/browser/service_worker_context.h"
namespace base {
@@ -218,6 +219,14 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
// Must be called from the IO thread.
bool OriginHasForeignFetchRegistrations(const GURL& origin);
+ // Binds the ServiceWorkerWorkerClient of a dedicated (or shared) worker to
+ // the parent frame's ServiceWorkerProviderHost. (This is used only when
+ // off-main-thread-fetch is enabled.)
+ void BindWorkerFetchContext(
+ int render_process_id,
+ int service_worker_provider_id,
+ mojom::ServiceWorkerWorkerClientAssociatedPtrInfo client_ptr_info);
+
private:
friend class BackgroundSyncManagerTest;
friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>;

Powered by Google App Engine
This is Rietveld 408576698