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 V8HeapProfilerAgent_h | 5 #ifndef V8HeapProfilerAgent_h |
6 #define V8HeapProfilerAgent_h | 6 #define V8HeapProfilerAgent_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "platform/inspector_protocol/Dispatcher.h" | 9 #include "platform/inspector_protocol/Dispatcher.h" |
10 #include "platform/v8_inspector/public/V8Debugger.h" | 10 #include "platform/v8_inspector/public/V8Debugger.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class V8RuntimeAgent; | 14 class V8RuntimeAgent; |
15 | 15 |
16 class PLATFORM_EXPORT V8HeapProfilerAgent : public protocol::Dispatcher::HeapPro
filerCommandHandler, public V8Debugger::Agent<protocol::Frontend::HeapProfiler>
{ | 16 class PLATFORM_EXPORT V8HeapProfilerAgent : public protocol::Backend::HeapProfil
er, public V8Debugger::Agent<protocol::Frontend::HeapProfiler> { |
17 public: | 17 public: |
18 static PassOwnPtr<V8HeapProfilerAgent> create(v8::Isolate*, V8RuntimeAgent*)
; | 18 static PassOwnPtr<V8HeapProfilerAgent> create(v8::Isolate*, V8RuntimeAgent*)
; |
19 virtual ~V8HeapProfilerAgent() { } | 19 virtual ~V8HeapProfilerAgent() { } |
20 | 20 |
21 virtual void requestHeapStatsUpdate() = 0; | 21 virtual void requestHeapStatsUpdate() = 0; |
22 }; | 22 }; |
23 | 23 |
24 } // namespace blink | 24 } // namespace blink |
25 | 25 |
26 #endif // !defined(V8HeapProfilerAgent_h) | 26 #endif // !defined(V8HeapProfilerAgent_h) |
OLD | NEW |