Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1049)

Unified Diff: Source/core/inspector/InspectorTracingAgent.h

Issue 254613002: DevTools: add Tracing agent on back-end (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed a stray call to TracingAgent.enable() Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.cpp ('k') | Source/core/inspector/InspectorTracingAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorTracingAgent.h
diff --git a/Source/core/inspector/InspectorTracingAgent.h b/Source/core/inspector/InspectorTracingAgent.h
new file mode 100644
index 0000000000000000000000000000000000000000..937cb2a8880259f83ee894b90cbb2444d2c049fd
--- /dev/null
+++ b/Source/core/inspector/InspectorTracingAgent.h
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2014 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.
+ */
+
+#ifndef InspectorTracingAgent_h
+#define InspectorTracingAgent_h
+
+#include "InspectorFrontend.h"
+#include "core/inspector/InspectorBaseAgent.h"
+#include "wtf/PassOwnPtr.h"
+#include "wtf/text/WTFString.h"
+
+namespace WebCore {
+
+class InspectorClient;
+
+class InspectorTracingAgent FINAL
+ : public InspectorBaseAgent<InspectorTracingAgent>
+ , public InspectorBackendDispatcher::TracingCommandHandler {
+ WTF_MAKE_NONCOPYABLE(InspectorTracingAgent);
+public:
+ static PassOwnPtr<InspectorTracingAgent> create()
+ {
+ return adoptPtr(new InspectorTracingAgent());
+ }
+
+ // Base agent methods.
+ virtual void restore() OVERRIDE;
+
+ // Protocol method implementations.
+ virtual void start(ErrorString*, const String&, const String&, const double*, String* sessionId) OVERRIDE;
+
+ // Methods for other agents to use.
+ void setLayerTreeId(int);
+
+private:
+ InspectorTracingAgent();
+
+ void innerStart();
+ void emitMetadataEvents();
+ String sessionId();
+
+ int m_layerTreeId;
+};
+
+}
+
+#endif // InspectorTracingAgent_h
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.cpp ('k') | Source/core/inspector/InspectorTracingAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698