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