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 6238debe4b31c8b48d688218628b6fe0f4454af6..57a2b6aad4e8ba5bfc65a15f289aa0f80f9dd479 100644 |
--- a/content/browser/service_worker/service_worker_context_wrapper.h |
+++ b/content/browser/service_worker/service_worker_context_wrapper.h |
@@ -71,13 +71,18 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper |
const GURL& pattern, |
const GURL& script_url, |
const ResultCallback& continuation) override; |
- virtual void UnregisterServiceWorker(const GURL& pattern, |
- const ResultCallback& continuation) |
- override; |
+ virtual void UnregisterServiceWorker( |
+ const GURL& pattern, |
+ const ResultCallback& continuation) override; |
virtual void Terminate() override; |
virtual void GetAllOriginsInfo(const GetUsageInfoCallback& callback) override; |
virtual void DeleteForOrigin(const GURL& origin_url) override; |
+ // DeleteForOrigin with completion callback. Does not exit early, and returns |
+ // false if one or more of the deletions fail. |
+ virtual void DeleteForOrigin(const GURL& origin_url, |
+ const ResultCallback& done); |
+ |
void AddObserver(ServiceWorkerContextObserver* observer); |
void RemoveObserver(ServiceWorkerContextObserver* observer); |
@@ -97,6 +102,8 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper |
friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>; |
friend class EmbeddedWorkerTestHelper; |
friend class ServiceWorkerProcessManager; |
+ friend class MockServiceWorkerContextWrapper; |
+ |
virtual ~ServiceWorkerContextWrapper(); |
void InitInternal( |
@@ -113,9 +120,6 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper |
void DidGetAllRegistrationsForGetAllOrigins( |
const GetUsageInfoCallback& callback, |
const std::vector<ServiceWorkerRegistrationInfo>& registrations); |
- void DidGetAllRegistrationsForDeleteForOrigin( |
- const GURL& origin, |
- const std::vector<ServiceWorkerRegistrationInfo>& registrations); |
const scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> > |
observer_list_; |