| 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 "content/common/content_export.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 IPC_MESSAGE_CONTROL2(ChildProcessMsg_BeginTracing, | 33 IPC_MESSAGE_CONTROL2(ChildProcessMsg_BeginTracing, |
| 34 std::vector<std::string> /* included_categories */, | 34 std::vector<std::string> /* included_categories */, |
| 35 std::vector<std::string> /* excluded_categories */) | 35 std::vector<std::string> /* excluded_categories */) |
| 36 | 36 |
| 37 // Sent to all child processes to disable trace event recording. | 37 // Sent to all child processes to disable trace event recording. |
| 38 IPC_MESSAGE_CONTROL0(ChildProcessMsg_EndTracing) | 38 IPC_MESSAGE_CONTROL0(ChildProcessMsg_EndTracing) |
| 39 | 39 |
| 40 // Sent to all child processes to get trace buffer fullness. | 40 // Sent to all child processes to get trace buffer fullness. |
| 41 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTraceBufferPercentFull) | 41 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTraceBufferPercentFull) |
| 42 | 42 |
| 43 // Sent to child processes to dump their handle table. |
| 44 IPC_MESSAGE_CONTROL0(ChildProcessMsg_DumpHandles) |
| 45 |
| 43 //////////////////////////////////////////////////////////////////////////////// | 46 //////////////////////////////////////////////////////////////////////////////// |
| 44 // Messages sent from the child process to the browser. | 47 // Messages sent from the child process to the browser. |
| 45 | 48 |
| 46 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) | 49 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) |
| 47 | 50 |
| 48 // Reply from child processes acking ChildProcessMsg_TraceChangeStatus(false). | 51 // Reply from child processes acking ChildProcessMsg_TraceChangeStatus(false). |
| 49 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_EndTracingAck, | 52 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_EndTracingAck, |
| 50 std::vector<std::string> /* known_categories */) | 53 std::vector<std::string> /* known_categories */) |
| 51 | 54 |
| 52 // Sent if the trace buffer becomes full. | 55 // Sent if the trace buffer becomes full. |
| 53 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_TraceBufferFull) | 56 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_TraceBufferFull) |
| 54 | 57 |
| 55 // Child processes send trace data back in JSON chunks. | 58 // Child processes send trace data back in JSON chunks. |
| 56 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceDataCollected, | 59 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceDataCollected, |
| 57 std::string /*json trace data*/) | 60 std::string /*json trace data*/) |
| 58 | 61 |
| 59 // Reply to ChildProcessMsg_GetTraceBufferPercentFull. | 62 // Reply to ChildProcessMsg_GetTraceBufferPercentFull. |
| 60 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceBufferPercentFullReply, | 63 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceBufferPercentFullReply, |
| 61 float /*trace buffer percent full*/) | 64 float /*trace buffer percent full*/) |
| 62 | 65 |
| 66 // Reply to ChildProcessMsg_DumpHandles when handle table dump is complete. |
| 67 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_DumpHandlesDone) |
| 68 |
| 63 #if defined(OS_WIN) | 69 #if defined(OS_WIN) |
| 64 // Request that the given font be loaded by the host so it's cached by the | 70 // Request that the given font be loaded by the host so it's cached by the |
| 65 // OS. Please see ChildProcessHost::PreCacheFont for details. | 71 // OS. Please see ChildProcessHost::PreCacheFont for details. |
| 66 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, | 72 IPC_SYNC_MESSAGE_CONTROL1_0(ChildProcessHostMsg_PreCacheFont, |
| 67 LOGFONT /* font data */) | 73 LOGFONT /* font data */) |
| 68 | 74 |
| 69 // Release the cached font | 75 // Release the cached font |
| 70 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) | 76 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) |
| 71 #endif // defined(OS_WIN) | 77 #endif // defined(OS_WIN) |
| OLD | NEW |