OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/shared_memory.h" |
8 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
9 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
10 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
11 | 12 |
12 #undef IPC_MESSAGE_EXPORT | 13 #undef IPC_MESSAGE_EXPORT |
13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
14 | 15 |
15 #define IPC_MESSAGE_START ChildProcessMsgStart | 16 #define IPC_MESSAGE_START ChildProcessMsgStart |
16 | 17 |
17 // Messages sent from the browser to the child process. | 18 // Messages sent from the browser to the child process. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 72 |
72 #if defined(OS_WIN) | 73 #if defined(OS_WIN) |
73 // Request that the given font be loaded by the host so it's cached by the | 74 // Request that the given font be loaded by the host so it's cached by the |
74 // OS. Please see ChildProcessHost::PreCacheFont for details. | 75 // OS. Please see ChildProcessHost::PreCacheFont for details. |
75 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, | 76 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, |
76 LOGFONT /* font data */) | 77 LOGFONT /* font data */) |
77 | 78 |
78 // Release the cached font | 79 // Release the cached font |
79 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) | 80 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) |
80 #endif // defined(OS_WIN) | 81 #endif // defined(OS_WIN) |
| 82 |
| 83 // Asks the browser to create a block of shared memory for the child process to |
| 84 // fill in and pass back to the browser. |
| 85 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, |
| 86 uint32 /* buffer size */, |
| 87 base::SharedMemoryHandle) |
OLD | NEW |