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..66f990a2bf50be21837f450520a0d06765c84964 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_fetch_context_factory.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 ServiceWorkerClient 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::ServiceWorkerClientAssociatedPtrInfo client_ptr_info); |
+ |
private: |
friend class BackgroundSyncManagerTest; |
friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>; |