| 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 70ed349520841fb5d473d6f62c6b785a7d7ef8b6..8630290d6fedc47f0950e5635b7bad1d04e9297e 100644
|
| --- a/content/browser/service_worker/service_worker_provider_host.h
|
| +++ b/content/browser/service_worker/service_worker_provider_host.h
|
| @@ -52,6 +52,15 @@ 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
|
| + // Returns the next SWProvider ID for navigations.
|
| + static int GetNextNavigationProviderId();
|
| +
|
| // 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
|
| @@ -202,6 +211,13 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
|
| return dispatcher_host_;
|
| }
|
|
|
| + // PlzNavigate
|
| + // Completes initialization of provider hosts used for navigation requests.
|
| + void CompleteNavigationInitialized(
|
| + int process_id,
|
| + int route_id,
|
| + ServiceWorkerDispatcherHost* dispatcher_host);
|
| +
|
| // Sends event messages to the renderer. Events for the worker are queued up
|
| // until the worker thread id is known via SetReadyToSendMessagesToWorker().
|
| void SendUpdateFoundMessage(
|
| @@ -253,6 +269,10 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
|
| FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest,
|
| UpdateForceBypassCache);
|
|
|
| + // PlzNavigate
|
| + // Next SWProvider ID for navigations, starting at -2 and going down.
|
| + static int next_navigation_provider_id_;
|
| +
|
| struct OneShotGetReadyCallback {
|
| GetRegistrationForReadyCallback callback;
|
| bool called;
|
|
|