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

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

Issue 657383002: DevTools: clear session id. follow-up patch after r183608 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed Created 6 years, 2 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
« 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 12 matching lines...) Expand all
23 WTF_MAKE_NONCOPYABLE(InspectorTracingAgent); 23 WTF_MAKE_NONCOPYABLE(InspectorTracingAgent);
24 public: 24 public:
25 static PassOwnPtrWillBeRawPtr<InspectorTracingAgent> create(InspectorClient* client, InspectorWorkerAgent* workerAgent) 25 static PassOwnPtrWillBeRawPtr<InspectorTracingAgent> create(InspectorClient* client, InspectorWorkerAgent* workerAgent)
26 { 26 {
27 return adoptPtrWillBeNoop(new InspectorTracingAgent(client, workerAgent) ); 27 return adoptPtrWillBeNoop(new InspectorTracingAgent(client, workerAgent) );
28 } 28 }
29 29
30 // Base agent methods. 30 // Base agent methods.
31 virtual void restore() override; 31 virtual void restore() override;
32 virtual void setFrontend(InspectorFrontend*) override; 32 virtual void setFrontend(InspectorFrontend*) override;
33 virtual void clearFrontend() override;
33 34
34 // Protocol method implementations. 35 // Protocol method implementations.
35 virtual void start(ErrorString*, const String& categoryFilter, const String& , const double*, PassRefPtrWillBeRawPtr<StartCallback>) override; 36 virtual void start(ErrorString*, const String& categoryFilter, const String& , const double*, PassRefPtrWillBeRawPtr<StartCallback>) override;
36 virtual void end(ErrorString*, PassRefPtrWillBeRawPtr<EndCallback>); 37 virtual void end(ErrorString*, PassRefPtrWillBeRawPtr<EndCallback>);
37 38
38 // Methods for other agents to use. 39 // Methods for other agents to use.
39 void setLayerTreeId(int); 40 void setLayerTreeId(int);
40 41
41 private: 42 private:
42 InspectorTracingAgent(InspectorClient*, InspectorWorkerAgent*); 43 InspectorTracingAgent(InspectorClient*, InspectorWorkerAgent*);
43 44
44 void emitMetadataEvents(); 45 void emitMetadataEvents();
46 void resetSessionId();
45 String sessionId(); 47 String sessionId();
46 48
47 int m_layerTreeId; 49 int m_layerTreeId;
48 InspectorClient* m_client; 50 InspectorClient* m_client;
49 InspectorFrontend::Tracing* m_frontend; 51 InspectorFrontend::Tracing* m_frontend;
50 InspectorWorkerAgent* m_workerAgent; 52 InspectorWorkerAgent* m_workerAgent;
51 }; 53 };
52 54
53 } 55 }
54 56
55 #endif // InspectorTracingAgent_h 57 #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