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

Side by Side Diff: Source/core/inspector/InspectorTracingAgent.h

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The Chromium Authors. All rights reserved. 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 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef InspectorTracingAgent_h 7 #ifndef InspectorTracingAgent_h
8 #define InspectorTracingAgent_h 8 #define InspectorTracingAgent_h
9 9
10 #include "core/InspectorFrontend.h" 10 #include "core/InspectorFrontend.h"
11 #include "core/inspector/InspectorBaseAgent.h" 11 #include "core/inspector/InspectorBaseAgent.h"
12 #include "wtf/PassOwnPtr.h" 12 #include "wtf/PassOwnPtr.h"
13 #include "wtf/text/WTFString.h" 13 #include "wtf/text/WTFString.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class InspectorClient; 17 class InspectorClient;
18 18
19 class InspectorTracingAgent FINAL 19 class InspectorTracingAgent FINAL
20 : public InspectorBaseAgent<InspectorTracingAgent> 20 : public InspectorBaseAgent<InspectorTracingAgent>
21 , public InspectorBackendDispatcher::TracingCommandHandler { 21 , public InspectorBackendDispatcher::TracingCommandHandler {
22 WTF_MAKE_NONCOPYABLE(InspectorTracingAgent); 22 WTF_MAKE_NONCOPYABLE(InspectorTracingAgent);
23 public: 23 public:
24 static PassOwnPtr<InspectorTracingAgent> create(InspectorClient* client) 24 static PassOwnPtrWillBeRawPtr<InspectorTracingAgent> create(InspectorClient* client)
25 { 25 {
26 return adoptPtr(new InspectorTracingAgent(client)); 26 return adoptPtrWillBeNoop(new InspectorTracingAgent(client));
27 } 27 }
28 28
29 // Base agent methods. 29 // Base agent methods.
30 virtual void restore() OVERRIDE; 30 virtual void restore() OVERRIDE;
31 31
32 // Protocol method implementations. 32 // Protocol method implementations.
33 virtual void start(ErrorString*, const String& categoryFilter, const String& , const double*, String* sessionId) OVERRIDE; 33 virtual void start(ErrorString*, const String& categoryFilter, const String& , const double*, String* sessionId) OVERRIDE;
34 34
35 // Methods for other agents to use. 35 // Methods for other agents to use.
36 void setLayerTreeId(int); 36 void setLayerTreeId(int);
37 37
38 private: 38 private:
39 explicit InspectorTracingAgent(InspectorClient*); 39 explicit InspectorTracingAgent(InspectorClient*);
40 40
41 void emitMetadataEvents(); 41 void emitMetadataEvents();
42 String sessionId(); 42 String sessionId();
43 43
44 int m_layerTreeId; 44 int m_layerTreeId;
45 InspectorClient* m_client; 45 InspectorClient* m_client;
46 }; 46 };
47 47
48 } 48 }
49 49
50 #endif // InspectorTracingAgent_h 50 #endif // InspectorTracingAgent_h
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.cpp ('k') | Source/core/inspector/InspectorWorkerAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698