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 "content/common/content_export.h" |
8 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
9 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
10 | 11 |
| 12 #undef IPC_MESSAGE_EXPORT |
| 13 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 14 |
11 #define IPC_MESSAGE_START ChildProcessMsgStart | 15 #define IPC_MESSAGE_START ChildProcessMsgStart |
12 | 16 |
13 // Messages sent from the browser to the child process. | 17 // Messages sent from the browser to the child process. |
14 | 18 |
15 // Tells the child process it should stop. | 19 // Tells the child process it should stop. |
16 IPC_MESSAGE_CONTROL0(ChildProcessMsg_AskBeforeShutdown) | 20 IPC_MESSAGE_CONTROL0(ChildProcessMsg_AskBeforeShutdown) |
17 | 21 |
18 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child | 22 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child |
19 // process that it's safe to shutdown. | 23 // process that it's safe to shutdown. |
20 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) | 24 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) |
(...skipping 27 matching lines...) Expand all Loading... |
48 // Sent if the trace buffer becomes full. | 52 // Sent if the trace buffer becomes full. |
49 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_TraceBufferFull) | 53 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_TraceBufferFull) |
50 | 54 |
51 // Child processes send trace data back in JSON chunks. | 55 // Child processes send trace data back in JSON chunks. |
52 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceDataCollected, | 56 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceDataCollected, |
53 std::string /*json trace data*/) | 57 std::string /*json trace data*/) |
54 | 58 |
55 // Reply to ChildProcessMsg_GetTraceBufferPercentFull. | 59 // Reply to ChildProcessMsg_GetTraceBufferPercentFull. |
56 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceBufferPercentFullReply, | 60 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceBufferPercentFullReply, |
57 float /*trace buffer percent full*/) | 61 float /*trace buffer percent full*/) |
OLD | NEW |