| 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" |
| 11 #include "base/trace_event/trace_event_impl.h" | 11 #include "base/trace_event/trace_event_impl.h" |
| 12 #include "ipc/ipc_channel_handle.h" | 12 #include "ipc/ipc_channel_handle.h" |
| 13 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
| 14 #include "ipc/ipc_message_utils.h" | 14 #include "ipc/ipc_message_utils.h" |
| 15 #include "ipc/ipc_platform_file.h" | 15 #include "ipc/ipc_platform_file.h" |
| 16 | 16 |
| 17 #define IPC_MESSAGE_START TracingMsgStart | 17 #define IPC_MESSAGE_START TracingMsgStart |
| 18 | 18 |
| 19 IPC_STRUCT_TRAITS_BEGIN(base::debug::TraceLogStatus) | 19 IPC_STRUCT_TRAITS_BEGIN(base::trace_event::TraceLogStatus) |
| 20 IPC_STRUCT_TRAITS_MEMBER(event_capacity) | 20 IPC_STRUCT_TRAITS_MEMBER(event_capacity) |
| 21 IPC_STRUCT_TRAITS_MEMBER(event_count) | 21 IPC_STRUCT_TRAITS_MEMBER(event_count) |
| 22 IPC_STRUCT_TRAITS_END() | 22 IPC_STRUCT_TRAITS_END() |
| 23 | 23 |
| 24 // Sent to all child processes to enable trace event recording. | 24 // Sent to all child processes to enable trace event recording. |
| 25 IPC_MESSAGE_CONTROL3(TracingMsg_BeginTracing, | 25 IPC_MESSAGE_CONTROL3(TracingMsg_BeginTracing, |
| 26 std::string /* category_filter_str */, | 26 std::string /* category_filter_str */, |
| 27 base::TimeTicks /* browser_time */, | 27 base::TimeTicks /* browser_time */, |
| 28 std::string /* base::debug::TraceOptions */) | 28 std::string /* base::trace_event::TraceOptions */) |
| 29 | 29 |
| 30 // Sent to all child processes to disable trace event recording. | 30 // Sent to all child processes to disable trace event recording. |
| 31 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing) | 31 IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing) |
| 32 | 32 |
| 33 // Sent to all child processes to start monitoring. | 33 // Sent to all child processes to start monitoring. |
| 34 IPC_MESSAGE_CONTROL3(TracingMsg_EnableMonitoring, | 34 IPC_MESSAGE_CONTROL3(TracingMsg_EnableMonitoring, |
| 35 std::string /* category_filter_str */, | 35 std::string /* category_filter_str */, |
| 36 base::TimeTicks /* browser_time */, | 36 base::TimeTicks /* browser_time */, |
| 37 std::string /* base::debug::TraceOptions */) | 37 std::string /* base::trace_event::TraceOptions */) |
| 38 | 38 |
| 39 // Sent to all child processes to stop monitoring. | 39 // Sent to all child processes to stop monitoring. |
| 40 IPC_MESSAGE_CONTROL0(TracingMsg_DisableMonitoring) | 40 IPC_MESSAGE_CONTROL0(TracingMsg_DisableMonitoring) |
| 41 | 41 |
| 42 // Sent to all child processes to capture the current monitorint snapshot. | 42 // Sent to all child processes to capture the current monitorint snapshot. |
| 43 IPC_MESSAGE_CONTROL0(TracingMsg_CaptureMonitoringSnapshot) | 43 IPC_MESSAGE_CONTROL0(TracingMsg_CaptureMonitoringSnapshot) |
| 44 | 44 |
| 45 // Sent to all child processes to get trace buffer fullness. | 45 // Sent to all child processes to get trace buffer fullness. |
| 46 IPC_MESSAGE_CONTROL0(TracingMsg_GetTraceLogStatus) | 46 IPC_MESSAGE_CONTROL0(TracingMsg_GetTraceLogStatus) |
| 47 | 47 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 69 // Child processes send back trace data in JSON chunks. | 69 // Child processes send back trace data in JSON chunks. |
| 70 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceDataCollected, | 70 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceDataCollected, |
| 71 std::string /*json trace data*/) | 71 std::string /*json trace data*/) |
| 72 | 72 |
| 73 // Child processes send back trace data of the current monitoring | 73 // Child processes send back trace data of the current monitoring |
| 74 // in JSON chunks. | 74 // in JSON chunks. |
| 75 IPC_MESSAGE_CONTROL1(TracingHostMsg_MonitoringTraceDataCollected, | 75 IPC_MESSAGE_CONTROL1(TracingHostMsg_MonitoringTraceDataCollected, |
| 76 std::string /*json trace data*/) | 76 std::string /*json trace data*/) |
| 77 | 77 |
| 78 // Reply to TracingMsg_GetTraceLogStatus. | 78 // Reply to TracingMsg_GetTraceLogStatus. |
| 79 IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceLogStatusReply, | 79 IPC_MESSAGE_CONTROL1( |
| 80 base::debug::TraceLogStatus /*status of the trace log*/) | 80 TracingHostMsg_TraceLogStatusReply, |
| 81 base::trace_event::TraceLogStatus /*status of the trace log*/) |
| OLD | NEW |