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

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

Issue 793713002: Oilpan: add missing tracing of InspectorTracingAgent objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | Source/core/inspector/InspectorTracingAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 10 matching lines...) Expand all
21 class InspectorTracingAgent final 21 class InspectorTracingAgent final
22 : public InspectorBaseAgent<InspectorTracingAgent> 22 : public InspectorBaseAgent<InspectorTracingAgent>
23 , public InspectorBackendDispatcher::TracingCommandHandler { 23 , public InspectorBackendDispatcher::TracingCommandHandler {
24 WTF_MAKE_NONCOPYABLE(InspectorTracingAgent); 24 WTF_MAKE_NONCOPYABLE(InspectorTracingAgent);
25 public: 25 public:
26 static PassOwnPtrWillBeRawPtr<InspectorTracingAgent> create(InspectorClient* client, InspectorWorkerAgent* workerAgent, Page* page) 26 static PassOwnPtrWillBeRawPtr<InspectorTracingAgent> create(InspectorClient* client, InspectorWorkerAgent* workerAgent, Page* page)
27 { 27 {
28 return adoptPtrWillBeNoop(new InspectorTracingAgent(client, workerAgent, page)); 28 return adoptPtrWillBeNoop(new InspectorTracingAgent(client, workerAgent, page));
29 } 29 }
30 30
31 void trace(Visitor*) override;
32
31 // Base agent methods. 33 // Base agent methods.
32 virtual void restore() override; 34 virtual void restore() override;
33 virtual void setFrontend(InspectorFrontend*) override; 35 virtual void setFrontend(InspectorFrontend*) override;
34 virtual void clearFrontend() override; 36 virtual void clearFrontend() override;
35 37
36 // Protocol method implementations. 38 // Protocol method implementations.
37 virtual void start(ErrorString*, const String* categoryFilter, const String* , const double*, PassRefPtrWillBeRawPtr<StartCallback>) override; 39 virtual void start(ErrorString*, const String* categoryFilter, const String* , const double*, PassRefPtrWillBeRawPtr<StartCallback>) override;
38 virtual void end(ErrorString*, PassRefPtrWillBeRawPtr<EndCallback>); 40 virtual void end(ErrorString*, PassRefPtrWillBeRawPtr<EndCallback>);
39 41
40 // Methods for other agents to use. 42 // Methods for other agents to use.
41 void setLayerTreeId(int); 43 void setLayerTreeId(int);
42 44
43 private: 45 private:
44 InspectorTracingAgent(InspectorClient*, InspectorWorkerAgent*, Page*); 46 InspectorTracingAgent(InspectorClient*, InspectorWorkerAgent*, Page*);
45 47
46 void emitMetadataEvents(); 48 void emitMetadataEvents();
47 void resetSessionId(); 49 void resetSessionId();
48 String sessionId(); 50 String sessionId();
49 51
50 int m_layerTreeId; 52 int m_layerTreeId;
51 InspectorClient* m_client; 53 InspectorClient* m_client;
52 InspectorFrontend::Tracing* m_frontend; 54 InspectorFrontend::Tracing* m_frontend;
53 InspectorWorkerAgent* m_workerAgent; 55 RawPtrWillBeMember<InspectorWorkerAgent> m_workerAgent;
54 Page* m_page; 56 RawPtrWillBeMember<Page> m_page;
55 }; 57 };
56 58
57 } 59 } // namespace blink
58 60
59 #endif // InspectorTracingAgent_h 61 #endif // InspectorTracingAgent_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorTracingAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698