Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1836)

Unified Diff: content/public/browser/service_worker_context.h

Issue 2575523002: Prerender: Confirm ServiceWorkers are invoked for NoState Prefetch (Closed)
Patch Set: comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698