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

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

Issue 2224063002: Use persistent memory for receiving metrics from sub-processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 4 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 | « content/browser/renderer_host/render_process_host_impl.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1ef3e48752e421ad3922b630cd37b1386e614ca4..e0f2d49e881a78627b62fb6215d6f8768d944da3 100644
--- a/content/public/browser/browser_child_process_host.h
+++ b/content/public/browser/browser_child_process_host.h
@@ -21,6 +21,7 @@
namespace base {
class CommandLine;
class FilePath;
+class SharedPersistentMemoryAllocator;
}
namespace shell {
@@ -82,6 +83,10 @@ class CONTENT_EXPORT BrowserChildProcessHost : public IPC::Sender {
virtual base::TerminationStatus GetTerminationStatus(
bool known_dead, int* exit_code) = 0;
+ // Take ownership of a "shared" metrics allocator (if one exists).
+ virtual std::unique_ptr<base::SharedPersistentMemoryAllocator>
+ TakeMetricsAllocator() = 0;
+
// Sets the user-visible name of the process.
virtual void SetName(const base::string16& name) = 0;
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698