OLD | NEW |
---|---|
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 // tracked_objects). | 94 // tracked_objects). |
95 IPC_MESSAGE_CONTROL2(ChildProcessMsg_GetChildProfilerData, | 95 IPC_MESSAGE_CONTROL2(ChildProcessMsg_GetChildProfilerData, |
96 int /* sequence_number */, | 96 int /* sequence_number */, |
97 int /* current_profiling_phase */) | 97 int /* current_profiling_phase */) |
98 | 98 |
99 // Send to all the child processes to mark the current profiling phase as | 99 // Send to all the child processes to mark the current profiling phase as |
100 // finished and start a new phase. | 100 // finished and start a new phase. |
101 IPC_MESSAGE_CONTROL1(ChildProcessMsg_ProfilingPhaseCompleted, | 101 IPC_MESSAGE_CONTROL1(ChildProcessMsg_ProfilingPhaseCompleted, |
102 int /* profiling_phase */) | 102 int /* profiling_phase */) |
103 | 103 |
104 // Sent to set the shared memory buffer to be used for storing histograms that | |
105 // are to be reported by the browser process to UMA. The following message | |
106 // (GetChildHistogramData) won't return any histograms created after this is | |
107 // processed. | |
Alexei Svitkine (slow)
2016/03/29 17:51:25
Please add a note about the histograms that are cr
bcwhite
2016/03/30 21:25:56
Done.
| |
108 IPC_MESSAGE_CONTROL2(ChildProcessMsg_SetHistogramMemory, | |
109 base::SharedMemoryHandle /* shm_handle */, | |
110 int /* shm_size */) | |
111 | |
104 // Send to all the child processes to send back histogram data. | 112 // Send to all the child processes to send back histogram data. |
105 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData, | 113 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData, |
106 int /* sequence_number */) | 114 int /* sequence_number */) |
107 | 115 |
108 // Sent to child processes to tell them to enter or leave background mode. | 116 // Sent to child processes to tell them to enter or leave background mode. |
109 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, | 117 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, |
110 bool /* background */) | 118 bool /* background */) |
111 | 119 |
112 // Sends a pipe used by the child process to broker passing of Mojo handles. | 120 // Sends a pipe used by the child process to broker passing of Mojo handles. |
113 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetMojoParentPipeHandle, | 121 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetMojoParentPipeHandle, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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) |
OLD | NEW |