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

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

Issue 2569963002: MemoryCoordinator checks if ServiceWorker exists on the suspending process (Closed)
Patch Set: Hide the tab 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/render_process_host.h
diff --git a/content/public/browser/render_process_host.h b/content/public/browser/render_process_host.h
index 8edeb8458a3428f17d5d3b0b7348886335a15989..30a96f368a57b2621e8f4bf94593651c7f756e0e 100644
--- a/content/public/browser/render_process_host.h
+++ b/content/public/browser/render_process_host.h
@@ -304,10 +304,11 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender,
// Returns true if this process currently has backgrounded priority.
virtual bool IsProcessBackgrounded() const = 0;
- // Called when the existence of the other renderer process which is connected
- // to the Worker in this renderer process has changed.
+ virtual size_t GetWorkerRefCount() const = 0;
virtual void IncrementServiceWorkerRefCount() = 0;
virtual void DecrementServiceWorkerRefCount() = 0;
Avi (use Gerrit) 2016/12/14 06:41:07 Extra blank line after these lines. Please add a
shimazu 2016/12/14 08:01:20 Done.
+ // Called when the existence of the other renderer process which is connected
+ // to the Worker in this renderer process has changed.
Avi (use Gerrit) 2016/12/14 06:41:07 This sentence is hard to follow. Can you clarify?
falken 2016/12/14 06:58:51 Yea this is complex but not from this patch. I mea
shimazu 2016/12/14 08:01:20 Updated the comment, thanks!
virtual void IncrementSharedWorkerRefCount() = 0;
virtual void DecrementSharedWorkerRefCount() = 0;

Powered by Google App Engine
This is Rietveld 408576698