| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 // Sent to child processes to tell them to purge and suspend. | 131 // Sent to child processes to tell them to purge and suspend. |
| 132 IPC_MESSAGE_CONTROL0(ChildProcessMsg_PurgeAndSuspend) | 132 IPC_MESSAGE_CONTROL0(ChildProcessMsg_PurgeAndSuspend) |
| 133 | 133 |
| 134 // Sent to child processes to tell them to resume from suspended mode. | 134 // Sent to child processes to tell them to resume from suspended mode. |
| 135 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Resume) | 135 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Resume) |
| 136 | 136 |
| 137 //////////////////////////////////////////////////////////////////////////////// | 137 //////////////////////////////////////////////////////////////////////////////// |
| 138 // Messages sent from the child process to the browser. | 138 // Messages sent from the child process to the browser. |
| 139 | 139 |
| 140 // A renderer sends this when it wants to create a connection to the GPU | |
| 141 // process. The browser will create the GPU process if necessary, and will | |
| 142 // return a handle to the channel via a GpuChannelEstablished message. | |
| 143 IPC_SYNC_MESSAGE_CONTROL0_3(ChildProcessHostMsg_EstablishGpuChannel, | |
| 144 int /* client id */, | |
| 145 IPC::ChannelHandle /* handle to channel */, | |
| 146 gpu::GPUInfo /* stats about GPU process*/) | |
| 147 | |
| 148 // A renderer sends this when it wants to know whether a gpu process exists. | 140 // A renderer sends this when it wants to know whether a gpu process exists. |
| 149 IPC_SYNC_MESSAGE_CONTROL0_1(ChildProcessHostMsg_HasGpuProcess, | 141 IPC_SYNC_MESSAGE_CONTROL0_1(ChildProcessHostMsg_HasGpuProcess, |
| 150 bool /* result */) | 142 bool /* result */) |
| 151 | 143 |
| 152 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) | 144 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) |
| 153 | 145 |
| 154 // Send back profiler data (ThreadData in tracked_objects). | 146 // Send back profiler data (ThreadData in tracked_objects). |
| 155 IPC_MESSAGE_CONTROL2( | 147 IPC_MESSAGE_CONTROL2( |
| 156 ChildProcessHostMsg_ChildProfilerData, | 148 ChildProcessHostMsg_ChildProfilerData, |
| 157 int, /* sequence_number */ | 149 int, /* sequence_number */ |
| (...skipping 14 matching lines...) Expand all Loading... |
| 172 #if defined(OS_WIN) | 164 #if defined(OS_WIN) |
| 173 // Request that the given font be loaded by the host so it's cached by the | 165 // Request that the given font be loaded by the host so it's cached by the |
| 174 // OS. Please see ChildProcessHost::PreCacheFont for details. | 166 // OS. Please see ChildProcessHost::PreCacheFont for details. |
| 175 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, | 167 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, |
| 176 LOGFONT /* font data */) | 168 LOGFONT /* font data */) |
| 177 | 169 |
| 178 // Release the cached font | 170 // Release the cached font |
| 179 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) | 171 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) |
| 180 #endif // defined(OS_WIN) | 172 #endif // defined(OS_WIN) |
| 181 | 173 |
| 182 // Asks the browser to create a gpu memory buffer. | |
| 183 IPC_SYNC_MESSAGE_CONTROL5_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, | |
| 184 gfx::GpuMemoryBufferId /* new_id */, | |
| 185 uint32_t /* width */, | |
| 186 uint32_t /* height */, | |
| 187 gfx::BufferFormat, | |
| 188 gfx::BufferUsage, | |
| 189 gfx::GpuMemoryBufferHandle) | |
| 190 | |
| 191 // Informs the browser that the child deleted a gpu memory buffer. | |
| 192 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, | |
| 193 gfx::GpuMemoryBufferId, | |
| 194 gpu::SyncToken /* sync_token */) | |
| 195 | |
| 196 #if defined(OS_LINUX) | 174 #if defined(OS_LINUX) |
| 197 // Asks the browser to change the priority of thread. | 175 // Asks the browser to change the priority of thread. |
| 198 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, | 176 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, |
| 199 base::PlatformThreadId, | 177 base::PlatformThreadId, |
| 200 base::ThreadPriority) | 178 base::ThreadPriority) |
| 201 #endif | 179 #endif |
| OLD | NEW |