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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8HeapProfilerAgentImpl.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 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" 8 #include "platform/inspector_protocol/InspectorProtocol.h"
9 #include "platform/v8_inspector/protocol/HeapProfiler.h" 9 #include "platform/v8_inspector/protocol/HeapProfiler.h"
10 10
11 #include <v8.h> 11 #include <v8.h>
12 12
13 namespace blink { 13 namespace v8_inspector {
14 14
15 class V8InspectorSessionImpl; 15 class V8InspectorSessionImpl;
16 16
17 using protocol::Maybe; 17 namespace protocol = blink::protocol;
18 using blink::protocol::Maybe;
18 19
19 class V8HeapProfilerAgentImpl : public protocol::HeapProfiler::Backend { 20 class V8HeapProfilerAgentImpl : public protocol::HeapProfiler::Backend {
20 PROTOCOL_DISALLOW_COPY(V8HeapProfilerAgentImpl); 21 PROTOCOL_DISALLOW_COPY(V8HeapProfilerAgentImpl);
21 public: 22 public:
22 V8HeapProfilerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, protocol::DictionaryValue* state); 23 V8HeapProfilerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*, protocol::DictionaryValue* state);
23 ~V8HeapProfilerAgentImpl() override; 24 ~V8HeapProfilerAgentImpl() override;
24 void restore(); 25 void restore();
25 26
26 void collectGarbage(ErrorString*) override; 27 void collectGarbage(ErrorString*) override;
27 28
(...skipping 18 matching lines...) Expand all
46 void requestHeapStatsUpdate(); 47 void requestHeapStatsUpdate();
47 static void onTimer(void*); 48 static void onTimer(void*);
48 49
49 V8InspectorSessionImpl* m_session; 50 V8InspectorSessionImpl* m_session;
50 v8::Isolate* m_isolate; 51 v8::Isolate* m_isolate;
51 protocol::HeapProfiler::Frontend m_frontend; 52 protocol::HeapProfiler::Frontend m_frontend;
52 protocol::DictionaryValue* m_state; 53 protocol::DictionaryValue* m_state;
53 bool m_hasTimer; 54 bool m_hasTimer;
54 }; 55 };
55 56
56 } // namespace blink 57 } // namespace v8_inspector
57 58
58 #endif // !defined(V8HeapProfilerAgentImpl_h) 59 #endif // !defined(V8HeapProfilerAgentImpl_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698