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

Side by Side Diff: content/common/child_process_messages.h

Issue 11975048: Native memory histograms for the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review (creis) Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Common IPC messages used for child processes. 5 // Common IPC messages used for child processes.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Send back profiler data (ThreadData in tracked_objects). 101 // Send back profiler data (ThreadData in tracked_objects).
102 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildProfilerData, 102 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildProfilerData,
103 int, /* sequence_number */ 103 int, /* sequence_number */
104 tracked_objects::ProcessDataSnapshot /* profiler_data */) 104 tracked_objects::ProcessDataSnapshot /* profiler_data */)
105 105
106 // Send back histograms as vector of pickled-histogram strings. 106 // Send back histograms as vector of pickled-histogram strings.
107 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildHistogramData, 107 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildHistogramData,
108 int, /* sequence_number */ 108 int, /* sequence_number */
109 std::vector<std::string> /* histogram_data */) 109 std::vector<std::string> /* histogram_data */)
110 110
111 // Request a histogram from the browser. The browser will send the histogram
112 // data only if it has been passed the command line flag
113 // switches::kMemoryMetrics.
114 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_GetBrowserHistogram,
nduca 2013/01/31 04:20:11 is there any security risk here with a compromised
marja 2013/01/31 08:19:36 The browser only replies with data if it was passe
115 std::string, /* histogram_name */
116 std::string /* histogram_json */)
117
111 // Reply to ChildProcessMsg_DumpHandles when handle table dump is complete. 118 // Reply to ChildProcessMsg_DumpHandles when handle table dump is complete.
112 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_DumpHandlesDone) 119 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_DumpHandlesDone)
113 120
114 #if defined(OS_WIN) 121 #if defined(OS_WIN)
115 // Request that the given font be loaded by the host so it's cached by the 122 // Request that the given font be loaded by the host so it's cached by the
116 // OS. Please see ChildProcessHost::PreCacheFont for details. 123 // OS. Please see ChildProcessHost::PreCacheFont for details.
117 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, 124 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont,
118 LOGFONT /* font data */) 125 LOGFONT /* font data */)
119 126
120 // Release the cached font 127 // Release the cached font
121 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) 128 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts)
122 #endif // defined(OS_WIN) 129 #endif // defined(OS_WIN)
123 130
124 // Asks the browser to create a block of shared memory for the child process to 131 // Asks the browser to create a block of shared memory for the child process to
125 // fill in and pass back to the browser. 132 // fill in and pass back to the browser.
126 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, 133 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory,
127 uint32 /* buffer size */, 134 uint32 /* buffer size */,
128 base::SharedMemoryHandle) 135 base::SharedMemoryHandle)
129 136
130 #if defined(USE_TCMALLOC) 137 #if defined(USE_TCMALLOC)
131 // Reply to ChildProcessMsg_GetTcmallocStats. 138 // Reply to ChildProcessMsg_GetTcmallocStats.
132 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, 139 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats,
133 std::string /* output */) 140 std::string /* output */)
134 #endif 141 #endif
OLDNEW
« no previous file with comments | « content/browser/histogram_message_filter.cc ('k') | content/renderer/dom_automation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698