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

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

Issue 2574663002: TabManager checks if ServiceWorker exists on the suspending process (Closed)
Patch Set: Created 4 years 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..15dfc59a440808dc849c505dcd9285fdf5903144 100644
--- a/content/public/browser/service_worker_context.h
+++ b/content/public/browser/service_worker_context.h
@@ -145,6 +145,12 @@ class ServiceWorkerContext {
int render_process_id,
const ResultCallback& callback) = 0;
+ // Check if any service worker exists on the process specified by
+ // |render_process_id|. Must be called from the IO thread. Returns true if
+ // one or more service workers exist on the process and false if no worker
+ // resides.
+ virtual bool IsServiceWorkerExistsOnProcess(int render_process_id) = 0;
+
protected:
ServiceWorkerContext() {}
virtual ~ServiceWorkerContext() {}

Powered by Google App Engine
This is Rietveld 408576698