| 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 ab4c900ba7610a18ca9499ee4816e1c9c797cabf..415f02502ff0131dc5769deda1056819d9ab3c1e 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,23 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
|
| ServiceWorkerStatusCode status,
|
| scoped_refptr<content::ServiceWorkerRegistration> registration);
|
|
|
| + void DidCheckRenderProcessForNavigationHint(const GURL& document_url,
|
| + blink::WebNavigationHintType type,
|
| + int render_process_id,
|
| + const ResultCallback& callback);
|
| +
|
| + void DidFindRegistrationForNavigationHint(
|
| + blink::WebNavigationHintType type,
|
| + int render_process_id,
|
| + const ResultCallback& callback,
|
| + ServiceWorkerStatusCode status,
|
| + 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.
|
|
|