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

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

Issue 2246233002: [DevTools] Move platform/v8_inspector classes under v8_inspector namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 #ifndef V8ProfilerAgentImpl_h 5 #ifndef V8ProfilerAgentImpl_h
6 #define V8ProfilerAgentImpl_h 6 #define V8ProfilerAgentImpl_h
7 7
8 #include "platform/inspector_protocol/InspectorProtocol.h" 8 #include "platform/inspector_protocol/InspectorProtocol.h"
9 #include "platform/v8_inspector/protocol/Profiler.h" 9 #include "platform/v8_inspector/protocol/Profiler.h"
10 10
11 #include <vector> 11 #include <vector>
12 12
13 namespace v8 { 13 namespace v8 {
14 class CpuProfiler; 14 class CpuProfiler;
15 class Isolate; 15 class Isolate;
16 } 16 }
17 17
18 namespace blink { 18 namespace v8_inspector {
19 19
20 class V8InspectorSessionImpl; 20 class V8InspectorSessionImpl;
21 21
22 namespace protocol = blink::protocol;
23
22 class V8ProfilerAgentImpl : public protocol::Profiler::Backend { 24 class V8ProfilerAgentImpl : public protocol::Profiler::Backend {
23 PROTOCOL_DISALLOW_COPY(V8ProfilerAgentImpl); 25 PROTOCOL_DISALLOW_COPY(V8ProfilerAgentImpl);
24 public: 26 public:
25 V8ProfilerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, pro tocol::DictionaryValue* state); 27 V8ProfilerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, pro tocol::DictionaryValue* state);
26 ~V8ProfilerAgentImpl() override; 28 ~V8ProfilerAgentImpl() override;
27 29
28 bool enabled() const { return m_enabled; } 30 bool enabled() const { return m_enabled; }
29 void restore(); 31 void restore();
30 32
31 void enable(ErrorString*) override; 33 void enable(ErrorString*) override;
(...skipping 19 matching lines...) Expand all
51 v8::CpuProfiler* m_profiler; 53 v8::CpuProfiler* m_profiler;
52 protocol::DictionaryValue* m_state; 54 protocol::DictionaryValue* m_state;
53 protocol::Profiler::Frontend m_frontend; 55 protocol::Profiler::Frontend m_frontend;
54 bool m_enabled; 56 bool m_enabled;
55 bool m_recordingCPUProfile; 57 bool m_recordingCPUProfile;
56 class ProfileDescriptor; 58 class ProfileDescriptor;
57 std::vector<ProfileDescriptor> m_startedProfiles; 59 std::vector<ProfileDescriptor> m_startedProfiles;
58 String16 m_frontendInitiatedProfileId; 60 String16 m_frontendInitiatedProfileId;
59 }; 61 };
60 62
61 } // namespace blink 63 } // namespace v8_inspector
62 64
63 #endif // !defined(V8ProfilerAgentImpl_h) 65 #endif // !defined(V8ProfilerAgentImpl_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698