Index: content/browser/service_worker/service_worker_provider_host.h |
diff --git a/content/browser/service_worker/service_worker_provider_host.h b/content/browser/service_worker/service_worker_provider_host.h |
index 088978e92d742ded11d98ce8c3b8c83d4ca73c2c..d3841c1d744b797aea5d14ae10542cfd3e423562 100644 |
--- a/content/browser/service_worker/service_worker_provider_host.h |
+++ b/content/browser/service_worker/service_worker_provider_host.h |
@@ -51,6 +51,16 @@ class CONTENT_EXPORT ServiceWorkerProviderHost |
using GetRegistrationForReadyCallback = |
base::Callback<void(ServiceWorkerRegistration* reigstration)>; |
+ // PlzNavigate |
+ // This value is used for the render_process_id for browser-initiated |
+ // navigations. |
+ static int kVirtualProcessIDForBrowserRequest; |
+ |
+ // PlzNavigate |
+ // Generates a new globally unique service_worker_provider_id for |
+ // browser-initiated navigations. |
+ static int GetNextBrowserProviderID(); |
carlosk
2015/08/27 14:26:43
You might want to also mention here that values st
Fabrice (no longer in Chrome)
2015/08/28 15:40:16
Does that really matter? It looks like an implemen
|
+ |
// When this provider host is for a Service Worker context, |route_id| is |
// MSG_ROUTING_NONE. When this provider host is for a Document, |
// |route_id| is the frame ID of the Document. When this provider host is for |
@@ -201,6 +211,11 @@ class CONTENT_EXPORT ServiceWorkerProviderHost |
return dispatcher_host_; |
} |
+ // PlzNavigate |
+ // Completes initialization of provider hosts initialized in the browser |
+ // process. |
+ void CompleteBrowserInitialized(int process_id, int route_id); |
+ |
// Sends event messages to the renderer. Events for the worker are queued up |
// until the worker thread id is known via SetReadyToSendMessagesToWorker(). |
void SendUpdateFoundMessage( |