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

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

Issue 2000063005: [WIP] Speculatively launch Service Workers on mouse/touch events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/service_worker/service_worker_context_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0285802834194f66fd3c299e56f1e4819e4305c9..9c44d5f17019709a74491c5a51cf261490df9768 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -25,6 +25,10 @@ class SequencedTaskRunner;
class SingleThreadTaskRunner;
}
+namespace blink {
+enum class WebNavigationHintType;
+}
+
namespace storage {
class QuotaManagerProxy;
class SpecialStoragePolicy;
@@ -110,6 +114,11 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
const CheckHasServiceWorkerCallback& callback) override;
void StopAllServiceWorkersForOrigin(const GURL& origin) override;
void ClearAllServiceWorkersForTest(const base::Closure& callback) override;
+ void StartServiceWorkerForNavigationHint(
+ const GURL& document_url,
+ blink::WebNavigationHintType type,
+ int render_process_id,
+ const ResultCallback& callback) override;
// These methods must only be called from the IO thread.
ServiceWorkerRegistration* GetLiveRegistration(int64_t registration_id);
@@ -231,6 +240,24 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
ServiceWorkerStatusCode status,
const scoped_refptr<content::ServiceWorkerRegistration>& registration);
+ void DidCheckRenderProcessForNavigationHint(const GURL& document_url,
+ blink::WebNavigationHintType type,
+ int render_process_id,
+ const ResultCallback& callback,
+ bool result);
+
+ void DidFindRegistrationForNavigationHint(
+ blink::WebNavigationHintType type,
+ int render_process_id,
+ const ResultCallback& callback,
+ ServiceWorkerStatusCode status,
+ const scoped_refptr<ServiceWorkerRegistration>& registration);
+
+ void DidStartServiceWorkerForNavigationHint(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.
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/service_worker/service_worker_context_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698