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>; |