| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 IPC_MESSAGE_CONTROL2(ChildProcessMsg_BeginTracing, | 76 IPC_MESSAGE_CONTROL2(ChildProcessMsg_BeginTracing, |
| 77 std::vector<std::string> /* included_categories */, | 77 std::vector<std::string> /* included_categories */, |
| 78 std::vector<std::string> /* excluded_categories */) | 78 std::vector<std::string> /* excluded_categories */) |
| 79 | 79 |
| 80 // Sent to all child processes to disable trace event recording. | 80 // Sent to all child processes to disable trace event recording. |
| 81 IPC_MESSAGE_CONTROL0(ChildProcessMsg_EndTracing) | 81 IPC_MESSAGE_CONTROL0(ChildProcessMsg_EndTracing) |
| 82 | 82 |
| 83 // Sent to all child processes to get trace buffer fullness. | 83 // Sent to all child processes to get trace buffer fullness. |
| 84 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTraceBufferPercentFull) | 84 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTraceBufferPercentFull) |
| 85 | 85 |
| 86 // Sent to all child processes to set watch event. |
| 87 IPC_MESSAGE_CONTROL3(ChildProcessMsg_SetWatchEvent, |
| 88 std::string /* category_name */, |
| 89 std::string /* event_name */, |
| 90 int /* num_occurrences */) |
| 91 |
| 92 // Sent to all child processes to clear watch event. |
| 93 IPC_MESSAGE_CONTROL0(ChildProcessMsg_CancelWatchEvent) |
| 94 |
| 86 // Tell the child process to enable or disable the profiler status. | 95 // Tell the child process to enable or disable the profiler status. |
| 87 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProfilerStatus, | 96 IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProfilerStatus, |
| 88 tracked_objects::ThreadData::Status /* profiler status */) | 97 tracked_objects::ThreadData::Status /* profiler status */) |
| 89 | 98 |
| 90 // Send to all the child processes to send back profiler data (ThreadData in | 99 // Send to all the child processes to send back profiler data (ThreadData in |
| 91 // tracked_objects). | 100 // tracked_objects). |
| 92 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildProfilerData, | 101 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildProfilerData, |
| 93 int /* sequence_number */) | 102 int /* sequence_number */) |
| 94 | 103 |
| 95 // Send to all the child processes to send back histogram data. | 104 // Send to all the child processes to send back histogram data. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 110 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) | 119 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) |
| 111 | 120 |
| 112 // Notify the browser that this child process supports tracing. | 121 // Notify the browser that this child process supports tracing. |
| 113 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ChildSupportsTracing) | 122 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ChildSupportsTracing) |
| 114 | 123 |
| 115 // Reply from child processes acking ChildProcessMsg_TraceChangeStatus(false). | 124 // Reply from child processes acking ChildProcessMsg_TraceChangeStatus(false). |
| 116 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_EndTracingAck, | 125 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_EndTracingAck, |
| 117 std::vector<std::string> /* known_categories */) | 126 std::vector<std::string> /* known_categories */) |
| 118 | 127 |
| 119 // Sent if the trace buffer becomes full. | 128 // Sent if the trace buffer becomes full. |
| 120 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_TraceBufferFull) | 129 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceNotification, |
| 130 int /* base::debug::TraceLog::Notification */) |
| 121 | 131 |
| 122 // Child processes send trace data back in JSON chunks. | 132 // Child processes send trace data back in JSON chunks. |
| 123 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceDataCollected, | 133 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceDataCollected, |
| 124 std::string /*json trace data*/) | 134 std::string /*json trace data*/) |
| 125 | 135 |
| 126 // Reply to ChildProcessMsg_GetTraceBufferPercentFull. | 136 // Reply to ChildProcessMsg_GetTraceBufferPercentFull. |
| 127 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceBufferPercentFullReply, | 137 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceBufferPercentFullReply, |
| 128 float /*trace buffer percent full*/) | 138 float /*trace buffer percent full*/) |
| 129 | 139 |
| 130 // Send back profiler data (ThreadData in tracked_objects). | 140 // Send back profiler data (ThreadData in tracked_objects). |
| (...skipping 23 matching lines...) Expand all Loading... |
| 154 // fill in and pass back to the browser. | 164 // fill in and pass back to the browser. |
| 155 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, | 165 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, |
| 156 uint32 /* buffer size */, | 166 uint32 /* buffer size */, |
| 157 base::SharedMemoryHandle) | 167 base::SharedMemoryHandle) |
| 158 | 168 |
| 159 #if defined(USE_TCMALLOC) | 169 #if defined(USE_TCMALLOC) |
| 160 // Reply to ChildProcessMsg_GetTcmallocStats. | 170 // Reply to ChildProcessMsg_GetTcmallocStats. |
| 161 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, | 171 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, |
| 162 std::string /* output */) | 172 std::string /* output */) |
| 163 #endif | 173 #endif |
| OLD | NEW |