2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
7 #ifndef InspectorTracingAgent_h
8 #define InspectorTracingAgent_h
10 #include "core/InspectorFrontend.h"
11 #include "core/inspector/InspectorBaseAgent.h"
12 #include "wtf/PassOwnPtr.h"
13 #include "wtf/text/WTFString.h"
17 class InspectorClient;
19 class InspectorTracingAgent FINAL
20 : public InspectorBaseAgent<InspectorTracingAgent>
21 , public InspectorBackendDispatcher::TracingCommandHandler {
22 WTF_MAKE_NONCOPYABLE(InspectorTracingAgent);
24 static PassOwnPtr<InspectorTracingAgent> create(InspectorClient* client)
26 return adoptPtr(new InspectorTracingAgent(client));
29 // Base agent methods.
30 virtual void restore() OVERRIDE;
32 // Protocol method implementations.
33 virtual void start(ErrorString*, const String& categoryFilter, const String&, const double*, String* sessionId) OVERRIDE;
35 // Methods for other agents to use.
36 void setLayerTreeId(int);
39 explicit InspectorTracingAgent(InspectorClient*);
41 void emitMetadataEvents();
45 InspectorClient* m_client;
50 #endif // InspectorTracingAgent_h