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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 // Reply to ChildProcessMsg_DumpHandles when handle table dump is complete. | 149 // Reply to ChildProcessMsg_DumpHandles when handle table dump is complete. |
150 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_DumpHandlesDone) | 150 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_DumpHandlesDone) |
151 | 151 |
152 #if defined(OS_WIN) | 152 #if defined(OS_WIN) |
153 // Request that the given font be loaded by the host so it's cached by the | 153 // Request that the given font be loaded by the host so it's cached by the |
154 // OS. Please see ChildProcessHost::PreCacheFont for details. | 154 // OS. Please see ChildProcessHost::PreCacheFont for details. |
155 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, | 155 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, |
156 LOGFONT /* font data */) | 156 LOGFONT /* font data */) |
157 | 157 |
| 158 // Request that the given font characters be loaded by the browser so it's |
| 159 // cached by the OS. Please see ChildProcessHost::PreCacheFontCharacters |
| 160 // for details. |
| 161 IPC_SYNC_MESSAGE_CONTROL2_0(ChildProcessHostMsg_PreCacheFontCharacters, |
| 162 LOGFONT, /* font data */ |
| 163 std::wstring /* characters */) |
| 164 |
158 // Release the cached font | 165 // Release the cached font |
159 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) | 166 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) |
160 #endif // defined(OS_WIN) | 167 #endif // defined(OS_WIN) |
161 | 168 |
162 // Asks the browser to create a block of shared memory for the child process to | 169 // Asks the browser to create a block of shared memory for the child process to |
163 // fill in and pass back to the browser. | 170 // fill in and pass back to the browser. |
164 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, | 171 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, |
165 uint32 /* buffer size */, | 172 uint32 /* buffer size */, |
166 base::SharedMemoryHandle) | 173 base::SharedMemoryHandle) |
167 | 174 |
168 #if defined(USE_TCMALLOC) | 175 #if defined(USE_TCMALLOC) |
169 // Reply to ChildProcessMsg_GetTcmallocStats. | 176 // Reply to ChildProcessMsg_GetTcmallocStats. |
170 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, | 177 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, |
171 std::string /* output */) | 178 std::string /* output */) |
172 #endif | 179 #endif |
OLD | NEW |