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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp

Issue 2008183002: DevTools: generate frontend and backend interfaces under domains. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comment addressed Created 4 years, 7 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/v8_inspector/V8ProfilerAgentImpl.h" 5 #include "platform/v8_inspector/V8ProfilerAgentImpl.h"
6 6
7 #include "platform/v8_inspector/Atomics.h" 7 #include "platform/v8_inspector/Atomics.h"
8 #include "platform/v8_inspector/V8DebuggerImpl.h" 8 #include "platform/v8_inspector/V8DebuggerImpl.h"
9 #include "platform/v8_inspector/V8InspectorSessionImpl.h" 9 #include "platform/v8_inspector/V8InspectorSessionImpl.h"
10 #include "platform/v8_inspector/V8StackTraceImpl.h" 10 #include "platform/v8_inspector/V8StackTraceImpl.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 class V8ProfilerAgentImpl::ProfileDescriptor { 115 class V8ProfilerAgentImpl::ProfileDescriptor {
116 public: 116 public:
117 ProfileDescriptor(const String16& id, const String16& title) 117 ProfileDescriptor(const String16& id, const String16& title)
118 : m_id(id) 118 : m_id(id)
119 , m_title(title) { } 119 , m_title(title) { }
120 String16 m_id; 120 String16 m_id;
121 String16 m_title; 121 String16 m_title;
122 }; 122 };
123 123
124 V8ProfilerAgentImpl::V8ProfilerAgentImpl(V8InspectorSessionImpl* session, protoc ol::Frontend::Profiler* frontend, protocol::DictionaryValue* state) 124 V8ProfilerAgentImpl::V8ProfilerAgentImpl(V8InspectorSessionImpl* session, protoc ol::Profiler::Frontend* frontend, protocol::DictionaryValue* state)
125 : m_session(session) 125 : m_session(session)
126 , m_isolate(m_session->debugger()->isolate()) 126 , m_isolate(m_session->debugger()->isolate())
127 , m_state(state) 127 , m_state(state)
128 , m_frontend(frontend) 128 , m_frontend(frontend)
129 , m_enabled(false) 129 , m_enabled(false)
130 , m_recordingCPUProfile(false) 130 , m_recordingCPUProfile(false)
131 { 131 {
132 } 132 }
133 133
134 V8ProfilerAgentImpl::~V8ProfilerAgentImpl() 134 V8ProfilerAgentImpl::~V8ProfilerAgentImpl()
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 profile->Delete(); 285 profile->Delete();
286 return result; 286 return result;
287 } 287 }
288 288
289 bool V8ProfilerAgentImpl::isRecording() const 289 bool V8ProfilerAgentImpl::isRecording() const
290 { 290 {
291 return m_recordingCPUProfile || !m_startedProfiles.isEmpty(); 291 return m_recordingCPUProfile || !m_startedProfiles.isEmpty();
292 } 292 }
293 293
294 } // namespace blink 294 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698