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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildProfilerData, | 104 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildProfilerData, |
105 int /* sequence_number */) | 105 int /* sequence_number */) |
106 | 106 |
107 // Send to all the child processes to send back histogram data. | 107 // Send to all the child processes to send back histogram data. |
108 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData, | 108 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildHistogramData, |
109 int /* sequence_number */) | 109 int /* sequence_number */) |
110 | 110 |
111 // Sent to child processes to dump their handle table. | 111 // Sent to child processes to dump their handle table. |
112 IPC_MESSAGE_CONTROL0(ChildProcessMsg_DumpHandles) | 112 IPC_MESSAGE_CONTROL0(ChildProcessMsg_DumpHandles) |
113 | 113 |
| 114 #if defined(OS_WIN) |
| 115 // Sent to child processes to tell them to enter or leave background mode. |
| 116 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, |
| 117 bool /* background */) |
| 118 #endif |
| 119 |
114 #if defined(USE_TCMALLOC) | 120 #if defined(USE_TCMALLOC) |
115 // Sent to child process to request tcmalloc stats. | 121 // Sent to child process to request tcmalloc stats. |
116 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats) | 122 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats) |
117 #endif | 123 #endif |
118 | 124 |
119 //////////////////////////////////////////////////////////////////////////////// | 125 //////////////////////////////////////////////////////////////////////////////// |
120 // Messages sent from the child process to the browser. | 126 // Messages sent from the child process to the browser. |
121 | 127 |
122 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) | 128 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) |
123 | 129 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 std::string /* output */) | 186 std::string /* output */) |
181 #endif | 187 #endif |
182 | 188 |
183 // Asks the browser to create a gpu memory buffer. | 189 // Asks the browser to create a gpu memory buffer. |
184 IPC_SYNC_MESSAGE_CONTROL4_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, | 190 IPC_SYNC_MESSAGE_CONTROL4_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, |
185 uint32 /* width */, | 191 uint32 /* width */, |
186 uint32 /* height */, | 192 uint32 /* height */, |
187 uint32 /* internalformat */, | 193 uint32 /* internalformat */, |
188 uint32 /* usage */, | 194 uint32 /* usage */, |
189 gfx::GpuMemoryBufferHandle) | 195 gfx::GpuMemoryBufferHandle) |
OLD | NEW |