| 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.
|
|
|