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

Unified Diff: content/browser/browser_child_process_host_impl.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: Clean up. Created 5 years, 8 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/browser_child_process_host_impl.h
diff --git a/content/browser/browser_child_process_host_impl.h b/content/browser/browser_child_process_host_impl.h
index 08e1b360a1147dec8c9124e9800333585eb3f978..dda38843a820f17475faf3515d8dc6a2259e0501 100644
--- a/content/browser/browser_child_process_host_impl.h
+++ b/content/browser/browser_child_process_host_impl.h
@@ -16,6 +16,7 @@
#include "content/public/browser/browser_child_process_host.h"
#include "content/public/browser/child_process_data.h"
#include "content/public/common/child_process_host_delegate.h"
+#include "content/public/common/resource_usage_reporter.mojom.h"
#if defined(OS_WIN)
#include "base/win/object_watcher.h"
@@ -80,6 +81,10 @@ class CONTENT_EXPORT BrowserChildProcessHostImpl
// Adds an IPC message filter.
void AddFilter(BrowserMessageFilter* filter);
+ // Sets the Mojo service used to get resource usage data (i.e. JS memory)
+ // from the process.
+ void SetResourceUsageReporter(ResourceUsageReporterPtr service);
+
// Called when an instance of a particular child is created in a page.
static void NotifyProcessInstanceCreated(const ChildProcessData& data);

Powered by Google App Engine
This is Rietveld 408576698