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

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

Issue 972083002: Report utility process JS memory in task manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8-pac-oop
Patch Set: Redesign. Created 5 years, 7 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/browser_child_process_host.h
diff --git a/content/public/browser/browser_child_process_host.h b/content/public/browser/browser_child_process_host.h
index d1369a455b01efce5497db8565aad2069ef2bef1..9b5899a029127690f4516f7055e212a642dc87e3 100644
--- a/content/public/browser/browser_child_process_host.h
+++ b/content/public/browser/browser_child_process_host.h
@@ -25,6 +25,7 @@ namespace content {
class BrowserChildProcessHostDelegate;
class ChildProcessHost;
class SandboxedProcessLauncherDelegate;
+class ServiceRegistry;
struct ChildProcessData;
// This represents child processes of the browser process, i.e. plugins. They
@@ -38,6 +39,10 @@ class CONTENT_EXPORT BrowserChildProcessHost : public IPC::Sender {
content::ProcessType process_type,
BrowserChildProcessHostDelegate* delegate);
+ // Returns the child process host with unique id |id|, or nullptr if it
+ // doesn't exist.
+ static BrowserChildProcessHost* Get(int id);
ncarter (slow) 2015/05/07 20:12:44 Name this FromID to match the convention establish
Anand Mistry (off Chromium) 2015/05/11 05:41:31 Done. Also clarified the comment to indicate what
+
~BrowserChildProcessHost() override {}
// Derived classes call this to launch the child process asynchronously.
@@ -72,6 +77,10 @@ class CONTENT_EXPORT BrowserChildProcessHost : public IPC::Sender {
// this object.
virtual void SetHandle(base::ProcessHandle handle) = 0;
+ // Get the Mojo service registry connected to the child process. Returns
+ // nullptr if no service registry exists.
+ virtual ServiceRegistry* GetServiceRegistry() = 0;
+
#if defined(OS_MACOSX) && !defined(OS_IOS)
// Returns a PortProvider used to get process metrics for child processes.
static base::ProcessMetrics::PortProvider* GetPortProvider();

Powered by Google App Engine
This is Rietveld 408576698