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..9328a2f525ce863a516c0c87fc5feb8c98bc151d 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, |
const 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, |
+ const scoped_refptr<ServiceWorkerRegistration>& registration); |
nhiroki
2016/07/25 06:15:13
Passing a smart pointer by const-reference is no l
horo
2016/07/25 08:24:27
Done by https://codereview.chromium.org/2181553003
|
+ |
+ 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. |