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

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

Issue 2575523002: Prerender: Confirm ServiceWorkers are invoked for NoState Prefetch (Closed)
Patch Set: comments/big hammer 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..fcc08b1d1779c8952d085a1278c94689ca443650 100644
--- a/content/public/browser/service_worker_context.h
+++ b/content/public/browser/service_worker_context.h
@@ -125,6 +125,11 @@ class ServiceWorkerContext {
// This function can be called from any thread.
virtual void StopAllServiceWorkersForOrigin(const GURL& origin) = 0;
+ // Kills all running workers on the given |origin| using
+ // RenderProcessHost.Shutdown with exit code RESULT_CODE_KILLED. The shutdowns
+ // are synchronous; this will wait for shutdowns to finish.
+ virtual void KillAllServiceWorkersForOrigin(const GURL& origin) = 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