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 // Multiply-included message header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 // Sent to all child processes to disable trace event recording. | 54 // Sent to all child processes to disable trace event recording. |
55 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing) | 55 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing) |
56 | 56 |
57 // Sent to all child processes to cancel trace event recording. | 57 // Sent to all child processes to cancel trace event recording. |
58 IPC_MESSAGE_CONTROL0(TracingMsg_CancelTracing) | 58 IPC_MESSAGE_CONTROL0(TracingMsg_CancelTracing) |
59 | 59 |
60 // Sent to all child processes to get trace buffer fullness. | 60 // Sent to all child processes to get trace buffer fullness. |
61 IPC_MESSAGE_CONTROL0(TracingMsg_GetTraceLogStatus) | 61 IPC_MESSAGE_CONTROL0(TracingMsg_GetTraceLogStatus) |
62 | 62 |
63 // Sent to all child processes to set watch event. | |
64 IPC_MESSAGE_CONTROL2(TracingMsg_SetWatchEvent, | |
65 std::string /* category_name */, | |
66 std::string /* event_name */) | |
67 | |
68 // Sent to all child processes to clear watch event. | |
69 IPC_MESSAGE_CONTROL0(TracingMsg_CancelWatchEvent) | |
70 | |
71 // Sent to all child processes to request a local (current process) memory dump. | 63 // Sent to all child processes to request a local (current process) memory dump. |
72 IPC_MESSAGE_CONTROL1(TracingMsg_ProcessMemoryDumpRequest, | 64 IPC_MESSAGE_CONTROL1(TracingMsg_ProcessMemoryDumpRequest, |
73 base::trace_event::MemoryDumpRequestArgs) | 65 base::trace_event::MemoryDumpRequestArgs) |
74 | 66 |
75 // Reply to TracingHostMsg_GlobalMemoryDumpRequest, sent by the browser process. | 67 // Reply to TracingHostMsg_GlobalMemoryDumpRequest, sent by the browser process. |
76 // This is to get the result of a global dump initiated by a child process. | 68 // This is to get the result of a global dump initiated by a child process. |
77 IPC_MESSAGE_CONTROL2(TracingMsg_GlobalMemoryDumpResponse, | 69 IPC_MESSAGE_CONTROL2(TracingMsg_GlobalMemoryDumpResponse, |
78 uint64_t /* dump_guid */, | 70 uint64_t /* dump_guid */, |
79 bool /* success */) | 71 bool /* success */) |
80 | 72 |
81 IPC_MESSAGE_CONTROL4(TracingMsg_SetUMACallback, | 73 IPC_MESSAGE_CONTROL4(TracingMsg_SetUMACallback, |
82 std::string /* histogram_name */, | 74 std::string /* histogram_name */, |
83 base::HistogramBase::Sample /* histogram_lower_value */, | 75 base::HistogramBase::Sample /* histogram_lower_value */, |
84 base::HistogramBase::Sample /* histogram_uppwer_value */, | 76 base::HistogramBase::Sample /* histogram_uppwer_value */, |
85 bool /* repeat */) | 77 bool /* repeat */) |
86 | 78 |
87 IPC_MESSAGE_CONTROL1(TracingMsg_ClearUMACallback, | 79 IPC_MESSAGE_CONTROL1(TracingMsg_ClearUMACallback, |
88 std::string /* histogram_name */) | 80 std::string /* histogram_name */) |
89 | 81 |
90 // Sent everytime when a watch event is matched. | |
91 IPC_MESSAGE_CONTROL0(TracingHostMsg_WatchEventMatched) | |
92 | |
93 // Notify the browser that this child process supports tracing. | 82 // Notify the browser that this child process supports tracing. |
94 IPC_MESSAGE_CONTROL0(TracingHostMsg_ChildSupportsTracing) | 83 IPC_MESSAGE_CONTROL0(TracingHostMsg_ChildSupportsTracing) |
95 | 84 |
96 // Reply from child processes acking TracingMsg_EndTracing. | 85 // Reply from child processes acking TracingMsg_EndTracing. |
97 IPC_MESSAGE_CONTROL1(TracingHostMsg_EndTracingAck, | 86 IPC_MESSAGE_CONTROL1(TracingHostMsg_EndTracingAck, |
98 std::vector<std::string> /* known_categories */) | 87 std::vector<std::string> /* known_categories */) |
99 | 88 |
100 // Child processes send back trace data in JSON chunks. | 89 // Child processes send back trace data in JSON chunks. |
101 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceDataCollected, | 90 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceDataCollected, |
102 std::string /*json trace data*/) | 91 std::string /*json trace data*/) |
103 | 92 |
104 // Reply to TracingMsg_GetTraceLogStatus. | 93 // Reply to TracingMsg_GetTraceLogStatus. |
105 IPC_MESSAGE_CONTROL1( | 94 IPC_MESSAGE_CONTROL1( |
106 TracingHostMsg_TraceLogStatusReply, | 95 TracingHostMsg_TraceLogStatusReply, |
107 base::trace_event::TraceLogStatus /*status of the trace log*/) | 96 base::trace_event::TraceLogStatus /*status of the trace log*/) |
108 | 97 |
109 // Sent to the browser to initiate a global memory dump from a child process. | 98 // Sent to the browser to initiate a global memory dump from a child process. |
110 IPC_MESSAGE_CONTROL1(TracingHostMsg_GlobalMemoryDumpRequest, | 99 IPC_MESSAGE_CONTROL1(TracingHostMsg_GlobalMemoryDumpRequest, |
111 base::trace_event::MemoryDumpRequestArgs) | 100 base::trace_event::MemoryDumpRequestArgs) |
112 | 101 |
113 // Reply to TracingMsg_ProcessMemoryDumpRequest. | 102 // Reply to TracingMsg_ProcessMemoryDumpRequest. |
114 IPC_MESSAGE_CONTROL2(TracingHostMsg_ProcessMemoryDumpResponse, | 103 IPC_MESSAGE_CONTROL2(TracingHostMsg_ProcessMemoryDumpResponse, |
115 uint64_t /* dump_guid */, | 104 uint64_t /* dump_guid */, |
116 bool /* success */) | 105 bool /* success */) |
117 | 106 |
118 IPC_MESSAGE_CONTROL1(TracingHostMsg_TriggerBackgroundTrace, | 107 IPC_MESSAGE_CONTROL1(TracingHostMsg_TriggerBackgroundTrace, |
119 std::string /* name */) | 108 std::string /* name */) |
120 | 109 |
121 IPC_MESSAGE_CONTROL0(TracingHostMsg_AbortBackgroundTrace) | 110 IPC_MESSAGE_CONTROL0(TracingHostMsg_AbortBackgroundTrace) |
OLD | NEW |