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

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

Issue 2916533002: Introduce chrome://flags/#network-prediction-options-for-service-worker
Patch Set: Created 3 years, 7 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_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 599c157346d86f351ffcf5ea9d332a6c30cbe422..ade1967f1a99a0c50863964ca5134c31b0823dce 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -110,6 +110,10 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
const std::string& request_uuid) override;
bool FinishedExternalRequest(int64_t service_worker_version_id,
const std::string& request_uuid) override;
+ void StartServiceWorkerForNavigationPreconnect(
+ const GURL& document_url,
+ RenderProcessHost* host,
+ const ResultCallback& callback) override;
// These methods must only be called from the IO thread.
ServiceWorkerRegistration* GetLiveRegistration(int64_t registration_id);
@@ -279,6 +283,23 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
ServiceWorkerStatusCode status,
scoped_refptr<content::ServiceWorkerRegistration> registration);
+ void DidCheckRenderProcessForNavigationPreconnect(
+ const GURL& document_url,
+ int render_process_id,
+ const ResultCallback& callback);
+
+ void DidFindRegistrationForNavigationPreconnect(
+ int render_process_id,
+ const ResultCallback& callback,
+ ServiceWorkerStatusCode status,
+ scoped_refptr<ServiceWorkerRegistration> registration);
+
+ void DidStartServiceWorkerForNavigationPreconnect(
+ const GURL& pattern,
+ int render_process_id,
+ const ResultCallback& callback,
+ ServiceWorkerStatusCode code);
+
// The core context is only for use on the IO thread.
// Can be null before/during init, during/after shutdown, and after
// DeleteAndStartOver fails.

Powered by Google App Engine
This is Rietveld 408576698