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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorTracingAgent.cpp

Issue 2012753003: DevTools: consolidate protocol generators for front-end, backend and type builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 #include "core/inspector/InspectorTracingAgent.h" 7 #include "core/inspector/InspectorTracingAgent.h"
8 8
9 #include "core/frame/LocalFrame.h" 9 #include "core/frame/LocalFrame.h"
10 #include "core/inspector/IdentifiersFactory.h" 10 #include "core/inspector/IdentifiersFactory.h"
11 #include "core/inspector/InspectedFrames.h" 11 #include "core/inspector/InspectedFrames.h"
12 #include "core/inspector/InspectorTraceEvents.h" 12 #include "core/inspector/InspectorTraceEvents.h"
13 #include "core/inspector/InspectorWorkerAgent.h" 13 #include "core/inspector/InspectorWorkerAgent.h"
14 #include "platform/TraceEvent.h" 14 #include "platform/TraceEvent.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 namespace TracingAgentState { 18 namespace TracingAgentState {
19 const char sessionId[] = "sessionId"; 19 const char sessionId[] = "sessionId";
20 } 20 }
21 21
22 namespace { 22 namespace {
23 const char devtoolsMetadataEventCategory[] = TRACE_DISABLED_BY_DEFAULT("devtools .timeline"); 23 const char devtoolsMetadataEventCategory[] = TRACE_DISABLED_BY_DEFAULT("devtools .timeline");
24 } 24 }
25 25
26 InspectorTracingAgent::InspectorTracingAgent(Client* client, InspectorWorkerAgen t* workerAgent, InspectedFrames* inspectedFrames) 26 InspectorTracingAgent::InspectorTracingAgent(Client* client, InspectorWorkerAgen t* workerAgent, InspectedFrames* inspectedFrames)
27 : InspectorBaseAgent<InspectorTracingAgent, protocol::Tracing::Frontend>("Tr acing") 27 : m_layerTreeId(0)
28 , m_layerTreeId(0)
29 , m_client(client) 28 , m_client(client)
30 , m_workerAgent(workerAgent) 29 , m_workerAgent(workerAgent)
31 , m_inspectedFrames(inspectedFrames) 30 , m_inspectedFrames(inspectedFrames)
32 { 31 {
33 } 32 }
34 33
35 DEFINE_TRACE(InspectorTracingAgent) 34 DEFINE_TRACE(InspectorTracingAgent)
36 { 35 {
37 visitor->trace(m_workerAgent); 36 visitor->trace(m_workerAgent);
38 visitor->trace(m_inspectedFrames); 37 visitor->trace(m_inspectedFrames);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 resetSessionId(); 97 resetSessionId();
99 } 98 }
100 99
101 void InspectorTracingAgent::resetSessionId() 100 void InspectorTracingAgent::resetSessionId()
102 { 101 {
103 m_state->remove(TracingAgentState::sessionId); 102 m_state->remove(TracingAgentState::sessionId);
104 m_workerAgent->setTracingSessionId(String()); 103 m_workerAgent->setTracingSessionId(String());
105 } 104 }
106 105
107 } // namespace blink 106 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698