summaryrefslogtreecommitdiffstats
path: root/components/tracing/tracing_messages.h
diff options
context:
space:
mode:
authorkaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-28 01:14:23 +0000
committerkaiwang@chromium.org <kaiwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-28 01:14:23 +0000
commita32c34b9dd7bcf91f5911768e4d601e0546f0d68 (patch)
tree48678be23971c5c86c6f676cca667f6a2e56bbee /components/tracing/tracing_messages.h
parentae2b0be000892f2c86aeb5a5aedb0ff4eb2d2063 (diff)
downloadchromium_src-a32c34b9dd7bcf91f5911768e4d601e0546f0d68.zip
chromium_src-a32c34b9dd7bcf91f5911768e4d601e0546f0d68.tar.gz
chromium_src-a32c34b9dd7bcf91f5911768e4d601e0546f0d68.tar.bz2
Move tracing component to src/components
BUG=167317 COLLABORATOR=joi@chromium.org Review URL: https://chromiumcodereview.appspot.com/11624021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174716 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/tracing/tracing_messages.h')
-rw-r--r--components/tracing/tracing_messages.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/components/tracing/tracing_messages.h b/components/tracing/tracing_messages.h
new file mode 100644
index 0000000..792c476
--- /dev/null
+++ b/components/tracing/tracing_messages.h
@@ -0,0 +1,56 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Multiply-included message header, no traditional include guard.
+#include <string>
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/sync_socket.h"
+#include "ipc/ipc_channel_handle.h"
+#include "ipc/ipc_message_macros.h"
+#include "ipc/ipc_message_utils.h"
+#include "ipc/ipc_platform_file.h"
+
+#define IPC_MESSAGE_START TracingMsgStart
+
+// Sent to all child processes to enable trace event recording.
+IPC_MESSAGE_CONTROL3(TracingMsg_BeginTracing,
+ std::vector<std::string> /* included_categories */,
+ std::vector<std::string> /* excluded_categories */,
+ base::TimeTicks /* browser_time */)
+
+// Sent to all child processes to disable trace event recording.
+IPC_MESSAGE_CONTROL0(TracingMsg_EndTracing)
+
+// Sent to all child processes to get trace buffer fullness.
+IPC_MESSAGE_CONTROL0(TracingMsg_GetTraceBufferPercentFull)
+
+// Sent to all child processes to set watch event.
+IPC_MESSAGE_CONTROL2(TracingMsg_SetWatchEvent,
+ std::string /* category_name */,
+ std::string /* event_name */)
+
+// Sent to all child processes to clear watch event.
+IPC_MESSAGE_CONTROL0(TracingMsg_CancelWatchEvent)
+
+// Notify the browser that this child process supports tracing.
+IPC_MESSAGE_CONTROL0(TracingHostMsg_ChildSupportsTracing)
+
+// Reply from child processes acking ChildProcessMsg_TraceChangeStatus(false).
+IPC_MESSAGE_CONTROL1(TracingHostMsg_EndTracingAck,
+ std::vector<std::string> /* known_categories */)
+
+// Sent if the trace buffer becomes full.
+IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceNotification,
+ int /* base::debug::TraceLog::Notification */)
+
+// Child processes send trace data back in JSON chunks.
+IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceDataCollected,
+ std::string /*json trace data*/)
+
+// Reply to TracingMsg_GetTraceBufferPercentFull.
+IPC_MESSAGE_CONTROL1(TracingHostMsg_TraceBufferPercentFullReply,
+ float /*trace buffer percent full*/)
+