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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
14 #include "base/tracked_objects.h" | 14 #include "base/tracked_objects.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "cc/resources/shared_bitmap_manager.h" | 17 #include "cc/resources/shared_bitmap_manager.h" |
18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
19 #include "content/common/content_param_traits_macros.h" | 19 #include "content/common/content_param_traits_macros.h" |
20 #include "gpu/command_buffer/common/sync_token.h" | 20 #include "gpu/command_buffer/common/sync_token.h" |
21 #include "gpu/ipc/common/gpu_param_traits_macros.h" | 21 #include "gpu/ipc/common/gpu_param_traits_macros.h" |
22 #include "ipc/ipc_channel_handle.h" | 22 #include "ipc/ipc_channel_handle.h" |
| 23 #include "ipc/ipc_features.h" |
23 #include "ipc/ipc_message_macros.h" | 24 #include "ipc/ipc_message_macros.h" |
24 #include "ipc/ipc_platform_file.h" | 25 #include "ipc/ipc_platform_file.h" |
25 #include "ui/gfx/gpu_memory_buffer.h" | 26 #include "ui/gfx/gpu_memory_buffer.h" |
26 #include "ui/gfx/ipc/gfx_param_traits.h" | 27 #include "ui/gfx/ipc/gfx_param_traits.h" |
27 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" | 28 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" |
28 | 29 |
29 #if defined(OS_LINUX) | 30 #if defined(OS_LINUX) |
30 #include "base/threading/platform_thread.h" | 31 #include "base/threading/platform_thread.h" |
31 #endif | 32 #endif |
32 | 33 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 85 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
85 | 86 |
86 #define IPC_MESSAGE_START ChildProcessMsgStart | 87 #define IPC_MESSAGE_START ChildProcessMsgStart |
87 | 88 |
88 // Messages sent from the browser to the child process. | 89 // Messages sent from the browser to the child process. |
89 | 90 |
90 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child | 91 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child |
91 // process that it's safe to shutdown. | 92 // process that it's safe to shutdown. |
92 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) | 93 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) |
93 | 94 |
94 #if defined(IPC_MESSAGE_LOG_ENABLED) | 95 #if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED) |
95 // Tell the child process to begin or end IPC message logging. | 96 // Tell the child process to begin or end IPC message logging. |
96 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetIPCLoggingEnabled, | 97 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetIPCLoggingEnabled, |
97 bool /* on or off */) | 98 bool /* on or off */) |
98 #endif | 99 #endif |
99 | 100 |
100 // Tell the child process to enable or disable the profiler status. | 101 // Tell the child process to enable or disable the profiler status. |
101 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProfilerStatus, | 102 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProfilerStatus, |
102 tracked_objects::ThreadData::Status /* profiler status */) | 103 tracked_objects::ThreadData::Status /* profiler status */) |
103 | 104 |
104 // Send to all the child processes to send back profiler data (ThreadData in | 105 // Send to all the child processes to send back profiler data (ThreadData in |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Release the cached font | 171 // Release the cached font |
171 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) | 172 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) |
172 #endif // defined(OS_WIN) | 173 #endif // defined(OS_WIN) |
173 | 174 |
174 #if defined(OS_LINUX) | 175 #if defined(OS_LINUX) |
175 // Asks the browser to change the priority of thread. | 176 // Asks the browser to change the priority of thread. |
176 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, | 177 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, |
177 base::PlatformThreadId, | 178 base::PlatformThreadId, |
178 base::ThreadPriority) | 179 base::ThreadPriority) |
179 #endif | 180 #endif |
OLD | NEW |