| 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/metrics/histogram.h" |
| 10 #include "base/sync_socket.h" | 11 #include "base/sync_socket.h" |
| 11 #include "base/trace_event/memory_dump_request_args.h" | 12 #include "base/trace_event/memory_dump_request_args.h" |
| 12 #include "base/trace_event/trace_event_impl.h" | 13 #include "base/trace_event/trace_event_impl.h" |
| 13 #include "ipc/ipc_channel_handle.h" | 14 #include "ipc/ipc_channel_handle.h" |
| 14 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
| 15 #include "ipc/ipc_message_utils.h" | 16 #include "ipc/ipc_message_utils.h" |
| 16 #include "ipc/ipc_platform_file.h" | 17 #include "ipc/ipc_platform_file.h" |
| 17 | 18 |
| 18 #define IPC_MESSAGE_START TracingMsgStart | 19 #define IPC_MESSAGE_START TracingMsgStart |
| 19 | 20 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // Sent to all child processes to request a local (current process) memory dump. | 69 // Sent to all child processes to request a local (current process) memory dump. |
| 69 IPC_MESSAGE_CONTROL1(TracingMsg_ProcessMemoryDumpRequest, | 70 IPC_MESSAGE_CONTROL1(TracingMsg_ProcessMemoryDumpRequest, |
| 70 base::trace_event::MemoryDumpRequestArgs) | 71 base::trace_event::MemoryDumpRequestArgs) |
| 71 | 72 |
| 72 // Reply to TracingHostMsg_GlobalMemoryDumpRequest, sent by the browser process. | 73 // Reply to TracingHostMsg_GlobalMemoryDumpRequest, sent by the browser process. |
| 73 // This is to get the result of a global dump initiated by a child process. | 74 // This is to get the result of a global dump initiated by a child process. |
| 74 IPC_MESSAGE_CONTROL2(TracingMsg_GlobalMemoryDumpResponse, | 75 IPC_MESSAGE_CONTROL2(TracingMsg_GlobalMemoryDumpResponse, |
| 75 uint64 /* dump_guid */, | 76 uint64 /* dump_guid */, |
| 76 bool /* success */) | 77 bool /* success */) |
| 77 | 78 |
| 79 IPC_MESSAGE_CONTROL2(TracingMsg_SetUMACallback, |
| 80 std::string /* histogram_name */, |
| 81 base::HistogramBase::Sample /* histogram_value */) |
| 82 |
| 83 IPC_MESSAGE_CONTROL1(TracingMsg_ClearUMACallback, |
| 84 std::string /* histogram_name */) |
| 85 |
| 78 // Sent everytime when a watch event is matched. | 86 // Sent everytime when a watch event is matched. |
| 79 IPC_MESSAGE_CONTROL0(TracingHostMsg_WatchEventMatched) | 87 IPC_MESSAGE_CONTROL0(TracingHostMsg_WatchEventMatched) |
| 80 | 88 |
| 81 // Notify the browser that this child process supports tracing. | 89 // Notify the browser that this child process supports tracing. |
| 82 IPC_MESSAGE_CONTROL0(TracingHostMsg_ChildSupportsTracing) | 90 IPC_MESSAGE_CONTROL0(TracingHostMsg_ChildSupportsTracing) |
| 83 | 91 |
| 84 // Reply from child processes acking TracingMsg_EndTracing. | 92 // Reply from child processes acking TracingMsg_EndTracing. |
| 85 IPC_MESSAGE_CONTROL1(TracingHostMsg_EndTracingAck, | 93 IPC_MESSAGE_CONTROL1(TracingHostMsg_EndTracingAck, |
| 86 std::vector<std::string> /* known_categories */) | 94 std::vector<std::string> /* known_categories */) |
| 87 | 95 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 103 base::trace_event::TraceLogStatus /*status of the trace log*/) | 111 base::trace_event::TraceLogStatus /*status of the trace log*/) |
| 104 | 112 |
| 105 // Sent to the browser to initiate a global memory dump from a child process. | 113 // Sent to the browser to initiate a global memory dump from a child process. |
| 106 IPC_MESSAGE_CONTROL1(TracingHostMsg_GlobalMemoryDumpRequest, | 114 IPC_MESSAGE_CONTROL1(TracingHostMsg_GlobalMemoryDumpRequest, |
| 107 base::trace_event::MemoryDumpRequestArgs) | 115 base::trace_event::MemoryDumpRequestArgs) |
| 108 | 116 |
| 109 // Reply to TracingMsg_ProcessMemoryDumpRequest. | 117 // Reply to TracingMsg_ProcessMemoryDumpRequest. |
| 110 IPC_MESSAGE_CONTROL2(TracingHostMsg_ProcessMemoryDumpResponse, | 118 IPC_MESSAGE_CONTROL2(TracingHostMsg_ProcessMemoryDumpResponse, |
| 111 uint64 /* dump_guid */, | 119 uint64 /* dump_guid */, |
| 112 bool /* success */) | 120 bool /* success */) |
| 121 |
| 122 IPC_MESSAGE_CONTROL1(TracingHostMsg_TriggerBackgroundTrace, |
| 123 std::string /* name */) |
| OLD | NEW |