| 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/debug/trace_event_synthetic_delay.h" |
| 10 #include "base/sync_socket.h" | 11 #include "base/sync_socket.h" |
| 11 #include "ipc/ipc_channel_handle.h" | 12 #include "ipc/ipc_channel_handle.h" |
| 12 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
| 13 #include "ipc/ipc_message_utils.h" | 14 #include "ipc/ipc_message_utils.h" |
| 14 #include "ipc/ipc_platform_file.h" | 15 #include "ipc/ipc_platform_file.h" |
| 15 | 16 |
| 16 #define IPC_MESSAGE_START TracingMsgStart | 17 #define IPC_MESSAGE_START TracingMsgStart |
| 17 | 18 |
| 19 IPC_ENUM_TRAITS(base::debug::TraceEventSyntheticDelay::Mode) |
| 20 |
| 18 // Sent to all child processes to enable trace event recording. | 21 // Sent to all child processes to enable trace event recording. |
| 19 IPC_MESSAGE_CONTROL3(TracingMsg_BeginTracing, | 22 IPC_MESSAGE_CONTROL3(TracingMsg_BeginTracing, |
| 20 std::string /* category_filter_str */, | 23 std::string /* category_filter_str */, |
| 21 base::TimeTicks /* browser_time */, | 24 base::TimeTicks /* browser_time */, |
| 22 int /* base::debug::TraceLog::Options */) | 25 int /* base::debug::TraceLog::Options */) |
| 23 | 26 |
| 24 // Sent to all child processes to disable trace event recording. | 27 // Sent to all child processes to disable trace event recording. |
| 25 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing) | 28 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing) |
| 26 | 29 |
| 27 // Sent to all child processes to start monitoring. | 30 // Sent to all child processes to start monitoring. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 40 IPC_MESSAGE_CONTROL0(TracingMsg_GetTraceBufferPercentFull) | 43 IPC_MESSAGE_CONTROL0(TracingMsg_GetTraceBufferPercentFull) |
| 41 | 44 |
| 42 // Sent to all child processes to set watch event. | 45 // Sent to all child processes to set watch event. |
| 43 IPC_MESSAGE_CONTROL2(TracingMsg_SetWatchEvent, | 46 IPC_MESSAGE_CONTROL2(TracingMsg_SetWatchEvent, |
| 44 std::string /* category_name */, | 47 std::string /* category_name */, |
| 45 std::string /* event_name */) | 48 std::string /* event_name */) |
| 46 | 49 |
| 47 // Sent to all child processes to clear watch event. | 50 // Sent to all child processes to clear watch event. |
| 48 IPC_MESSAGE_CONTROL0(TracingMsg_CancelWatchEvent) | 51 IPC_MESSAGE_CONTROL0(TracingMsg_CancelWatchEvent) |
| 49 | 52 |
| 53 IPC_STRUCT_BEGIN(TracingMsg_ConfigureSyntheticDelay_Params) |
| 54 IPC_STRUCT_MEMBER(std::string, name) |
| 55 IPC_STRUCT_MEMBER(base::TimeDelta, target_duration) |
| 56 IPC_STRUCT_MEMBER(base::debug::TraceEventSyntheticDelay::Mode, mode) |
| 57 IPC_STRUCT_END() |
| 58 |
| 59 IPC_MESSAGE_CONTROL1(TracingMsg_ConfigureSyntheticDelay, |
| 60 TracingMsg_ConfigureSyntheticDelay_Params /* params */) |
| 61 |
| 62 IPC_MESSAGE_CONTROL0(TracingHostMsg_ConfigureSyntheticDelayAck); |
| 63 |
| 50 // Notify the browser that this child process supports tracing. | 64 // Notify the browser that this child process supports tracing. |
| 51 IPC_MESSAGE_CONTROL0(TracingHostMsg_ChildSupportsTracing) | 65 IPC_MESSAGE_CONTROL0(TracingHostMsg_ChildSupportsTracing) |
| 52 | 66 |
| 53 // Reply from child processes acking TracingMsg_EndTracing. | 67 // Reply from child processes acking TracingMsg_EndTracing. |
| 54 IPC_MESSAGE_CONTROL1(TracingHostMsg_EndTracingAck, | 68 IPC_MESSAGE_CONTROL1(TracingHostMsg_EndTracingAck, |
| 55 std::vector<std::string> /* known_categories */) | 69 std::vector<std::string> /* known_categories */) |
| 56 | 70 |
| 57 // Reply from child processes acking TracingMsg_CaptureMonitoringSnapshot. | 71 // Reply from child processes acking TracingMsg_CaptureMonitoringSnapshot. |
| 58 IPC_MESSAGE_CONTROL0(TracingHostMsg_CaptureMonitoringSnapshotAck) | 72 IPC_MESSAGE_CONTROL0(TracingHostMsg_CaptureMonitoringSnapshotAck) |
| 59 | 73 |
| 60 // Sent if the trace buffer becomes full. | 74 // Sent if the trace buffer becomes full. |
| 61 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceNotification, | 75 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceNotification, |
| 62 int /* base::debug::TraceLog::Notification */) | 76 int /* base::debug::TraceLog::Notification */) |
| 63 | 77 |
| 64 // Child processes send back trace data in JSON chunks. | 78 // Child processes send back trace data in JSON chunks. |
| 65 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceDataCollected, | 79 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceDataCollected, |
| 66 std::string /*json trace data*/) | 80 std::string /*json trace data*/) |
| 67 | 81 |
| 68 // Child processes send back trace data of the current monitoring | 82 // Child processes send back trace data of the current monitoring |
| 69 // in JSON chunks. | 83 // in JSON chunks. |
| 70 IPC_MESSAGE_CONTROL1(TracingHostMsg_MonitoringTraceDataCollected, | 84 IPC_MESSAGE_CONTROL1(TracingHostMsg_MonitoringTraceDataCollected, |
| 71 std::string /*json trace data*/) | 85 std::string /*json trace data*/) |
| 72 | 86 |
| 73 // Reply to TracingMsg_GetTraceBufferPercentFull. | 87 // Reply to TracingMsg_GetTraceBufferPercentFull. |
| 74 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceBufferPercentFullReply, | 88 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceBufferPercentFullReply, |
| 75 float /*trace buffer percent full*/) | 89 float /*trace buffer percent full*/) |
| 76 | 90 |
| OLD | NEW |