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

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

Issue 1671933002: Create and pass shared-histogram-allocator from browser to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hsm-merge
Patch Set: cleanup on RenderProcessHostDestroyed instead of RenderProcessExited; use existing ScopedObserver c… Created 4 years, 9 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // tracked_objects). 107 // tracked_objects).
108 IPC_MESSAGE_CONTROL2(ChildProcessMsg_GetChildProfilerData, 108 IPC_MESSAGE_CONTROL2(ChildProcessMsg_GetChildProfilerData,
109 int /* sequence_number */, 109 int /* sequence_number */,
110 int /* current_profiling_phase */) 110 int /* current_profiling_phase */)
111 111
112 // Send to all the child processes to mark the current profiling phase as 112 // Send to all the child processes to mark the current profiling phase as
113 // finished and start a new phase. 113 // finished and start a new phase.
114 IPC_MESSAGE_CONTROL1(ChildProcessMsg_ProfilingPhaseCompleted, 114 IPC_MESSAGE_CONTROL1(ChildProcessMsg_ProfilingPhaseCompleted,
115 int /* profiling_phase */) 115 int /* profiling_phase */)
116 116
117 // Sent to set the shared memory buffer to be used for storing histograms that
118 // are to be reported by the browser process to UMA. The following message
119 // (GetChildHistogramData) won't return any histograms created after this is
120 // processed.
121 IPC_MESSAGE_CONTROL2(ChildProcessMsg_SetHistogramMemory,
122 base::SharedMemoryHandle /* shm_handle */,
123 int /* shm_size */)
124
117 // Send to all the child processes to send back histogram data. 125 // Send to all the child processes to send back histogram data.
118 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData, 126 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData,
119 int /* sequence_number */) 127 int /* sequence_number */)
120 128
121 // Sent to child processes to tell them to enter or leave background mode. 129 // Sent to child processes to tell them to enter or leave background mode.
122 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, 130 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded,
123 bool /* background */) 131 bool /* background */)
124 132
125 // Sends a pipe used by the child process to broker passing of Mojo handles. 133 // Sends a pipe used by the child process to broker passing of Mojo handles.
126 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetMojoParentPipeHandle, 134 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetMojoParentPipeHandle,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 IPC_SYNC_MESSAGE_CONTROL2_1( 215 IPC_SYNC_MESSAGE_CONTROL2_1(
208 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, 216 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory,
209 uint32_t /* size */, 217 uint32_t /* size */,
210 content::DiscardableSharedMemoryId, 218 content::DiscardableSharedMemoryId,
211 base::SharedMemoryHandle) 219 base::SharedMemoryHandle)
212 220
213 // Informs the browser that the child deleted a block of discardable shared 221 // Informs the browser that the child deleted a block of discardable shared
214 // memory. 222 // memory.
215 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, 223 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory,
216 content::DiscardableSharedMemoryId) 224 content::DiscardableSharedMemoryId)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698