| 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 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/sync_socket.h" | 10 #include "base/sync_socket.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 // Sent to all child processes to disable trace event recording. | 24 // Sent to all child processes to disable trace event recording. |
| 25 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing) | 25 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing) |
| 26 | 26 |
| 27 // Sent to all child processes to start monitoring. | 27 // Sent to all child processes to start monitoring. |
| 28 IPC_MESSAGE_CONTROL3(TracingMsg_EnableMonitoring, | 28 IPC_MESSAGE_CONTROL3(TracingMsg_EnableMonitoring, |
| 29 std::string /* category_filter_str */, | 29 std::string /* category_filter_str */, |
| 30 base::TimeTicks /* browser_time */, | 30 base::TimeTicks /* browser_time */, |
| 31 int /* base::debug::TraceLog::Options */) | 31 int /* base::debug::TraceLog::Options */) |
| 32 | 32 |
| 33 // Sent to all child processes to stop monitoring.. | 33 // Sent to all child processes to stop monitoring. |
| 34 IPC_MESSAGE_CONTROL0(TracingMsg_DisableMonitoring) | 34 IPC_MESSAGE_CONTROL0(TracingMsg_DisableMonitoring) |
| 35 | 35 |
| 36 // Sent to all child processes to capture the current monitorint snapshot. | 36 // Sent to all child processes to capture the current monitorint snapshot. |
| 37 IPC_MESSAGE_CONTROL0(TracingMsg_CaptureMonitoringSnapshot) | 37 IPC_MESSAGE_CONTROL0(TracingMsg_CaptureMonitoringSnapshot) |
| 38 | 38 |
| 39 // Sent to all child processes to get trace buffer fullness. | 39 // Sent to all child processes to get trace buffer fullness. |
| 40 IPC_MESSAGE_CONTROL0(TracingMsg_GetTraceBufferPercentFull) | 40 IPC_MESSAGE_CONTROL0(TracingMsg_GetTraceBufferPercentFull) |
| 41 | 41 |
| 42 // Sent to all child processes to set watch event. | 42 // Sent to all child processes to set watch event. |
| 43 IPC_MESSAGE_CONTROL2(TracingMsg_SetWatchEvent, | 43 IPC_MESSAGE_CONTROL2(TracingMsg_SetWatchEvent, |
| 44 std::string /* category_name */, | 44 std::string /* category_name */, |
| 45 std::string /* event_name */) | 45 std::string /* event_name */) |
| 46 | 46 |
| 47 // Sent to all child processes to clear watch event. | 47 // Sent to all child processes to clear watch event. |
| 48 IPC_MESSAGE_CONTROL0(TracingMsg_CancelWatchEvent) | 48 IPC_MESSAGE_CONTROL0(TracingMsg_CancelWatchEvent) |
| 49 | 49 |
| 50 // Sent everytime when a watch event is matched. |
| 51 IPC_MESSAGE_CONTROL0(TracingHostMsg_WatchEventMatched); |
| 52 |
| 50 // Notify the browser that this child process supports tracing. | 53 // Notify the browser that this child process supports tracing. |
| 51 IPC_MESSAGE_CONTROL0(TracingHostMsg_ChildSupportsTracing) | 54 IPC_MESSAGE_CONTROL0(TracingHostMsg_ChildSupportsTracing) |
| 52 | 55 |
| 53 // Reply from child processes acking TracingMsg_EndTracing. | 56 // Reply from child processes acking TracingMsg_EndTracing. |
| 54 IPC_MESSAGE_CONTROL1(TracingHostMsg_EndTracingAck, | 57 IPC_MESSAGE_CONTROL1(TracingHostMsg_EndTracingAck, |
| 55 std::vector<std::string> /* known_categories */) | 58 std::vector<std::string> /* known_categories */) |
| 56 | 59 |
| 57 // Reply from child processes acking TracingMsg_CaptureMonitoringSnapshot. | 60 // Reply from child processes acking TracingMsg_CaptureMonitoringSnapshot. |
| 58 IPC_MESSAGE_CONTROL0(TracingHostMsg_CaptureMonitoringSnapshotAck) | 61 IPC_MESSAGE_CONTROL0(TracingHostMsg_CaptureMonitoringSnapshotAck) |
| 59 | 62 |
| 60 // Sent if the trace buffer becomes full. | |
| 61 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceNotification, | |
| 62 int /* base::debug::TraceLog::Notification */) | |
| 63 | |
| 64 // Child processes send back trace data in JSON chunks. | 63 // Child processes send back trace data in JSON chunks. |
| 65 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceDataCollected, | 64 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceDataCollected, |
| 66 std::string /*json trace data*/) | 65 std::string /*json trace data*/) |
| 67 | 66 |
| 68 // Child processes send back trace data of the current monitoring | 67 // Child processes send back trace data of the current monitoring |
| 69 // in JSON chunks. | 68 // in JSON chunks. |
| 70 IPC_MESSAGE_CONTROL1(TracingHostMsg_MonitoringTraceDataCollected, | 69 IPC_MESSAGE_CONTROL1(TracingHostMsg_MonitoringTraceDataCollected, |
| 71 std::string /*json trace data*/) | 70 std::string /*json trace data*/) |
| 72 | 71 |
| 73 // Reply to TracingMsg_GetTraceBufferPercentFull. | 72 // Reply to TracingMsg_GetTraceBufferPercentFull. |
| 74 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceBufferPercentFullReply, | 73 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceBufferPercentFullReply, |
| 75 float /*trace buffer percent full*/) | 74 float /*trace buffer percent full*/) |
| 76 | 75 |
| OLD | NEW |