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

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: RenderProcessHostImpl::NotifySharedWorkerHasClients() 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
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..7f30ad8207e8dba109b4da2646fd8c340c9dff23 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -226,6 +226,11 @@ class CONTENT_EXPORT RenderProcessHostImpl
is_guest_ = is_guest;
}
+ // Called when the existance of the other renderer process which is connected
+ // to the SharedWorker in this renderer process has changed.
+ // It is only called when "enable-embedded-shared-worker" flag is set.
+ void NotifySharedWorkerHasClients(bool shared_worker_has_clients);
+
protected:
// A proxy for our IPC::Channel that lives on the IO thread (see
// browser_process.h)
@@ -415,6 +420,8 @@ class CONTENT_EXPORT RenderProcessHostImpl
// Message filter and dispatcher for screen orientation.
ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host_;
+ bool shared_worker_has_clients_;
+
DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
};

Powered by Google App Engine
This is Rietveld 408576698