Chromium Code Reviews| Index: content/public/browser/service_worker_context.h |
| diff --git a/content/public/browser/service_worker_context.h b/content/public/browser/service_worker_context.h |
| index c095f9d1314c7fe028441bb19479c2f73d4fc99e..a7427446f6b0f8a5f8c7c74efee2ad2280d04000 100644 |
| --- a/content/public/browser/service_worker_context.h |
| +++ b/content/public/browser/service_worker_context.h |
| @@ -125,6 +125,13 @@ class ServiceWorkerContext { |
| // This function can be called from any thread. |
| virtual void StopAllServiceWorkersForOrigin(const GURL& origin) = 0; |
| + // As above, but |callback| is executed for each running worker stopped, or if |
|
falken
2017/01/06 16:17:55
nit: This comment no longer matches the latest pat
mattcary
2017/01/09 14:45:42
Moot
|
| + // there are no running workers to stop. The callback will run on the IO |
| + // thread. |
| + virtual void StopAllServiceWorkersForOriginWithCallback( |
| + const GURL& origin, |
| + const base::Closure& callback) = 0; |
| + |
| // Stops all running service workers and unregisters all service worker |
| // registrations. This method is used in LayoutTests to make sure that the |
| // existing service worker will not affect the succeeding tests. |