| 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 24 matching lines...) Expand all Loading... |
| 45 // Sent if the trace buffer becomes full. | 49 // Sent if the trace buffer becomes full. |
| 46 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_TraceBufferFull) | 50 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_TraceBufferFull) |
| 47 | 51 |
| 48 // Child processes send trace data back in JSON chunks. | 52 // Child processes send trace data back in JSON chunks. |
| 49 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceDataCollected, | 53 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceDataCollected, |
| 50 std::string /*json trace data*/) | 54 std::string /*json trace data*/) |
| 51 | 55 |
| 52 // Reply to ChildProcessMsg_GetTraceBufferPercentFull. | 56 // Reply to ChildProcessMsg_GetTraceBufferPercentFull. |
| 53 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceBufferPercentFullReply, | 57 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceBufferPercentFullReply, |
| 54 float /*trace buffer percent full*/) | 58 float /*trace buffer percent full*/) |
| OLD | NEW |