| OLD | NEW |
| 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/v8_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 v8_inspector { | 18 namespace v8_inspector { |
| 19 | 19 |
| 20 class V8InspectorSessionImpl; | 20 class V8InspectorSessionImpl; |
| 21 | 21 |
| 22 namespace protocol = blink::protocol; | 22 using protocol::ErrorString; |
| 23 | 23 |
| 24 class V8ProfilerAgentImpl : public protocol::Profiler::Backend { | 24 class V8ProfilerAgentImpl : public protocol::Profiler::Backend { |
| 25 PROTOCOL_DISALLOW_COPY(V8ProfilerAgentImpl); | 25 PROTOCOL_DISALLOW_COPY(V8ProfilerAgentImpl); |
| 26 public: | 26 public: |
| 27 V8ProfilerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, pro
tocol::DictionaryValue* state); | 27 V8ProfilerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, pro
tocol::DictionaryValue* state); |
| 28 ~V8ProfilerAgentImpl() override; | 28 ~V8ProfilerAgentImpl() override; |
| 29 | 29 |
| 30 bool enabled() const { return m_enabled; } | 30 bool enabled() const { return m_enabled; } |
| 31 void restore(); | 31 void restore(); |
| 32 | 32 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 56 bool m_enabled; | 56 bool m_enabled; |
| 57 bool m_recordingCPUProfile; | 57 bool m_recordingCPUProfile; |
| 58 class ProfileDescriptor; | 58 class ProfileDescriptor; |
| 59 std::vector<ProfileDescriptor> m_startedProfiles; | 59 std::vector<ProfileDescriptor> m_startedProfiles; |
| 60 String16 m_frontendInitiatedProfileId; | 60 String16 m_frontendInitiatedProfileId; |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace v8_inspector | 63 } // namespace v8_inspector |
| 64 | 64 |
| 65 #endif // !defined(V8ProfilerAgentImpl_h) | 65 #endif // !defined(V8ProfilerAgentImpl_h) |
| OLD | NEW |