OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 V8HeapProfilerAgentImpl_h | 5 #ifndef V8HeapProfilerAgentImpl_h |
6 #define V8HeapProfilerAgentImpl_h | 6 #define V8HeapProfilerAgentImpl_h |
7 | 7 |
8 #include "platform/inspector_protocol/InspectorProtocol.h" | |
9 #include "platform/v8_inspector/protocol/HeapProfiler.h" | 8 #include "platform/v8_inspector/protocol/HeapProfiler.h" |
| 9 #include "platform/v8_inspector/protocol/InspectorProtocol.h" |
10 | 10 |
11 #include <v8.h> | 11 #include <v8.h> |
12 | 12 |
13 namespace v8_inspector { | 13 namespace v8_inspector { |
14 | 14 |
15 class V8InspectorSessionImpl; | 15 class V8InspectorSessionImpl; |
16 | 16 |
17 namespace protocol = blink::protocol; | 17 using protocol::ErrorString; |
18 using blink::protocol::Maybe; | 18 using protocol::Maybe; |
19 | 19 |
20 class V8HeapProfilerAgentImpl : public protocol::HeapProfiler::Backend { | 20 class V8HeapProfilerAgentImpl : public protocol::HeapProfiler::Backend { |
21 PROTOCOL_DISALLOW_COPY(V8HeapProfilerAgentImpl); | 21 PROTOCOL_DISALLOW_COPY(V8HeapProfilerAgentImpl); |
22 public: | 22 public: |
23 V8HeapProfilerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*,
protocol::DictionaryValue* state); | 23 V8HeapProfilerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*,
protocol::DictionaryValue* state); |
24 ~V8HeapProfilerAgentImpl() override; | 24 ~V8HeapProfilerAgentImpl() override; |
25 void restore(); | 25 void restore(); |
26 | 26 |
27 void collectGarbage(ErrorString*) override; | 27 void collectGarbage(ErrorString*) override; |
28 | 28 |
(...skipping 21 matching lines...) Expand all Loading... |
50 V8InspectorSessionImpl* m_session; | 50 V8InspectorSessionImpl* m_session; |
51 v8::Isolate* m_isolate; | 51 v8::Isolate* m_isolate; |
52 protocol::HeapProfiler::Frontend m_frontend; | 52 protocol::HeapProfiler::Frontend m_frontend; |
53 protocol::DictionaryValue* m_state; | 53 protocol::DictionaryValue* m_state; |
54 bool m_hasTimer; | 54 bool m_hasTimer; |
55 }; | 55 }; |
56 | 56 |
57 } // namespace v8_inspector | 57 } // namespace v8_inspector |
58 | 58 |
59 #endif // !defined(V8HeapProfilerAgentImpl_h) | 59 #endif // !defined(V8HeapProfilerAgentImpl_h) |
OLD | NEW |