| 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..ca0fefa80d713ad868935204b1cc123173b1bd83 100644
|
| --- a/content/browser/service_worker/service_worker_context_wrapper.h
|
| +++ b/content/browser/service_worker/service_worker_context_wrapper.h
|
| @@ -53,6 +53,9 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
|
| storage::SpecialStoragePolicy* special_storage_policy);
|
| void Shutdown();
|
|
|
| + // False before initialization and after shutdown.
|
| + virtual bool IsAlive() const;
|
| +
|
| // Deletes all files on disk and restarts the system asynchronously. This
|
| // leaves the system in a disabled state until it's done. This should be
|
| // called on the IO thread.
|
| @@ -71,13 +74,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 +105,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 +123,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_;
|
|
|