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

Unified Diff: content/browser/service_worker/service_worker_provider_host.h

Issue 1294243004: PlzNavigate: Make ServiceWorker work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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_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(

Powered by Google App Engine
This is Rietveld 408576698