| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildNonPersistentHistogramData, | 119 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildNonPersistentHistogramData, |
| 120 int /* sequence_number */) | 120 int /* sequence_number */) |
| 121 | 121 |
| 122 // Sent to child processes to tell them to enter or leave background mode. | 122 // Sent to child processes to tell them to enter or leave background mode. |
| 123 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, | 123 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProcessBackgrounded, |
| 124 bool /* background */) | 124 bool /* background */) |
| 125 | 125 |
| 126 // Sent to child processes to tell them to purge and suspend. | 126 // Sent to child processes to tell them to purge and suspend. |
| 127 IPC_MESSAGE_CONTROL0(ChildProcessMsg_PurgeAndSuspend) | 127 IPC_MESSAGE_CONTROL0(ChildProcessMsg_PurgeAndSuspend) |
| 128 | 128 |
| 129 // Sent to child processes to tell them to resume from suspended mode. |
| 130 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Resume) |
| 131 |
| 129 //////////////////////////////////////////////////////////////////////////////// | 132 //////////////////////////////////////////////////////////////////////////////// |
| 130 // Messages sent from the child process to the browser. | 133 // Messages sent from the child process to the browser. |
| 131 | 134 |
| 132 // A renderer sends this when it wants to create a connection to the GPU | 135 // A renderer sends this when it wants to create a connection to the GPU |
| 133 // process. The browser will create the GPU process if necessary, and will | 136 // process. The browser will create the GPU process if necessary, and will |
| 134 // return a handle to the channel via a GpuChannelEstablished message. | 137 // return a handle to the channel via a GpuChannelEstablished message. |
| 135 IPC_SYNC_MESSAGE_CONTROL0_3(ChildProcessHostMsg_EstablishGpuChannel, | 138 IPC_SYNC_MESSAGE_CONTROL0_3(ChildProcessHostMsg_EstablishGpuChannel, |
| 136 int /* client id */, | 139 int /* client id */, |
| 137 IPC::ChannelHandle /* handle to channel */, | 140 IPC::ChannelHandle /* handle to channel */, |
| 138 gpu::GPUInfo /* stats about GPU process*/) | 141 gpu::GPUInfo /* stats about GPU process*/) |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 // memory. | 223 // memory. |
| 221 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 224 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
| 222 content::DiscardableSharedMemoryId) | 225 content::DiscardableSharedMemoryId) |
| 223 | 226 |
| 224 #if defined(OS_LINUX) | 227 #if defined(OS_LINUX) |
| 225 // Asks the browser to change the priority of thread. | 228 // Asks the browser to change the priority of thread. |
| 226 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, | 229 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, |
| 227 base::PlatformThreadId, | 230 base::PlatformThreadId, |
| 228 base::ThreadPriority) | 231 base::ThreadPriority) |
| 229 #endif | 232 #endif |
| OLD | NEW |