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

Unified Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 176843004: Add IncrementWorkerRefCount() and DecrementWorkerRefCount() to RenderProcessHostImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 6 years, 10 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index d2fbe9a5599def233956b3e7a109e8ed8db016d1..e42eb30b8b48633eaef4d2b40176b2d8be930118 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -226,6 +226,12 @@ class CONTENT_EXPORT RenderProcessHostImpl
is_guest_ = is_guest;
}
+ // Called when the existence of the other renderer process which is connected
+ // to the Worker in this renderer process has changed.
+ // It is only called when "enable-embedded-shared-worker" flag is set.
+ void IncrementWorkerRefCount();
+ void DecrementWorkerRefCount();
+
protected:
// A proxy for our IPC::Channel that lives on the IO thread (see
// browser_process.h)
@@ -415,6 +421,8 @@ class CONTENT_EXPORT RenderProcessHostImpl
// Message filter and dispatcher for screen orientation.
ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_;
+ int worker_ref_count_;
+
DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
};
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698