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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // tracked_objects). | 95 // tracked_objects). |
96 IPC_MESSAGE_CONTROL2(ChildProcessMsg_GetChildProfilerData, | 96 IPC_MESSAGE_CONTROL2(ChildProcessMsg_GetChildProfilerData, |
97 int /* sequence_number */, | 97 int /* sequence_number */, |
98 int /* current_profiling_phase */) | 98 int /* current_profiling_phase */) |
99 | 99 |
100 // Send to all the child processes to mark the current profiling phase as | 100 // Send to all the child processes to mark the current profiling phase as |
101 // finished and start a new phase. | 101 // finished and start a new phase. |
102 IPC_MESSAGE_CONTROL1(ChildProcessMsg_ProfilingPhaseCompleted, | 102 IPC_MESSAGE_CONTROL1(ChildProcessMsg_ProfilingPhaseCompleted, |
103 int /* profiling_phase */) | 103 int /* profiling_phase */) |
104 | 104 |
| 105 // Sent to set the shared memory buffer to be used for storing histograms that |
| 106 // are to be reported by the browser process to UMA. The following message |
| 107 // (GetChildNonPersistentHistogramData) will return any histograms created |
| 108 // before this message is received but not any histograms created afterward. |
| 109 IPC_MESSAGE_CONTROL2(ChildProcessMsg_SetHistogramMemory, |
| 110 base::SharedMemoryHandle /* shm_handle */, |
| 111 int /* shm_size */) |
| 112 |
105 // Send to all the child processes to send back histogram data. | 113 // Send to all the child processes to send back histogram data. |
106 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData, | 114 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildNonPersistentHistogramData, |
107 int /* sequence_number */) | 115 int /* sequence_number */) |
108 | 116 |
109 // Sent to child processes to tell them to enter or leave background mode. | 117 // Sent to child processes to tell them to enter or leave background mode. |
110 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, | 118 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, |
111 bool /* background */) | 119 bool /* background */) |
112 | 120 |
113 // Sends a pipe used by the child process to broker passing of Mojo handles. | 121 // Sends a pipe used by the child process to broker passing of Mojo handles. |
114 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetMojoParentPipeHandle, | 122 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetMojoParentPipeHandle, |
115 IPC::PlatformFileForTransit /* handle */) | 123 IPC::PlatformFileForTransit /* handle */) |
116 | 124 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 IPC_SYNC_MESSAGE_CONTROL2_1( | 210 IPC_SYNC_MESSAGE_CONTROL2_1( |
203 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, | 211 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, |
204 uint32_t /* size */, | 212 uint32_t /* size */, |
205 content::DiscardableSharedMemoryId, | 213 content::DiscardableSharedMemoryId, |
206 base::SharedMemoryHandle) | 214 base::SharedMemoryHandle) |
207 | 215 |
208 // Informs the browser that the child deleted a block of discardable shared | 216 // Informs the browser that the child deleted a block of discardable shared |
209 // memory. | 217 // memory. |
210 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 218 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
211 content::DiscardableSharedMemoryId) | 219 content::DiscardableSharedMemoryId) |
OLD | NEW |