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

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

Issue 2035653006: [DevTools] Move Console to v8 inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: all tests pass Created 4 years, 6 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 V8InspectorSessionImpl_h 5 #ifndef V8InspectorSessionImpl_h
6 #define V8InspectorSessionImpl_h 6 #define V8InspectorSessionImpl_h
7 7
8 #include "platform/inspector_protocol/Allocator.h" 8 #include "platform/inspector_protocol/Allocator.h"
9 #include "platform/inspector_protocol/Collections.h" 9 #include "platform/inspector_protocol/Collections.h"
10 #include "platform/inspector_protocol/DispatcherBase.h" 10 #include "platform/inspector_protocol/DispatcherBase.h"
11 #include "platform/inspector_protocol/Platform.h" 11 #include "platform/inspector_protocol/Platform.h"
12 #include "platform/inspector_protocol/String16.h" 12 #include "platform/inspector_protocol/String16.h"
13 #include "platform/v8_inspector/protocol/Runtime.h" 13 #include "platform/v8_inspector/protocol/Runtime.h"
14 #include "platform/v8_inspector/public/V8InspectorSession.h" 14 #include "platform/v8_inspector/public/V8InspectorSession.h"
15 #include "platform/v8_inspector/public/V8InspectorSessionClient.h" 15 #include "platform/v8_inspector/public/V8InspectorSessionClient.h"
16 16
17 #include <v8.h> 17 #include <v8.h>
18 18
19 namespace blink { 19 namespace blink {
20 20
21 class InjectedScript; 21 class InjectedScript;
22 class RemoteObjectIdBase; 22 class RemoteObjectIdBase;
23 class V8ConsoleAgentImpl;
23 class V8DebuggerAgentImpl; 24 class V8DebuggerAgentImpl;
24 class V8DebuggerImpl; 25 class V8DebuggerImpl;
25 class V8HeapProfilerAgentImpl; 26 class V8HeapProfilerAgentImpl;
26 class V8ProfilerAgentImpl; 27 class V8ProfilerAgentImpl;
27 class V8RuntimeAgentImpl; 28 class V8RuntimeAgentImpl;
28 29
29 class V8InspectorSessionImpl : public V8InspectorSession { 30 class V8InspectorSessionImpl : public V8InspectorSession {
30 PROTOCOL_DISALLOW_COPY(V8InspectorSessionImpl); 31 PROTOCOL_DISALLOW_COPY(V8InspectorSessionImpl);
31 public: 32 public:
32 static std::unique_ptr<V8InspectorSessionImpl> create(V8DebuggerImpl*, int c ontextGroupId, protocol::FrontendChannel*, V8InspectorSessionClient*, const Stri ng16* state); 33 static std::unique_ptr<V8InspectorSessionImpl> create(V8DebuggerImpl*, int c ontextGroupId, protocol::FrontendChannel*, V8InspectorSessionClient*, const Stri ng16* state);
33 ~V8InspectorSessionImpl(); 34 ~V8InspectorSessionImpl();
34 35
35 V8DebuggerImpl* debugger() const { return m_debugger; } 36 V8DebuggerImpl* debugger() const { return m_debugger; }
36 V8InspectorSessionClient* client() const { return m_client; } 37 V8InspectorSessionClient* client() const { return m_client; }
38 V8ConsoleAgentImpl* consoleAgent() { return m_consoleAgent.get(); }
37 V8DebuggerAgentImpl* debuggerAgent() { return m_debuggerAgent.get(); } 39 V8DebuggerAgentImpl* debuggerAgent() { return m_debuggerAgent.get(); }
38 V8ProfilerAgentImpl* profilerAgent() { return m_profilerAgent.get(); } 40 V8ProfilerAgentImpl* profilerAgent() { return m_profilerAgent.get(); }
39 V8RuntimeAgentImpl* runtimeAgent() { return m_runtimeAgent.get(); } 41 V8RuntimeAgentImpl* runtimeAgent() { return m_runtimeAgent.get(); }
40 int contextGroupId() const { return m_contextGroupId; } 42 int contextGroupId() const { return m_contextGroupId; }
41 43
42 InjectedScript* findInjectedScript(ErrorString*, int contextId); 44 InjectedScript* findInjectedScript(ErrorString*, int contextId);
43 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*); 45 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*);
44 void reset(); 46 void reset();
45 void discardInjectedScripts(); 47 void discardInjectedScripts();
46 void reportAllContexts(V8RuntimeAgentImpl*); 48 void reportAllContexts(V8RuntimeAgentImpl*);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 bool m_customObjectFormatterEnabled; 83 bool m_customObjectFormatterEnabled;
82 int m_instrumentationCounter; 84 int m_instrumentationCounter;
83 85
84 protocol::UberDispatcher m_dispatcher; 86 protocol::UberDispatcher m_dispatcher;
85 std::unique_ptr<protocol::DictionaryValue> m_state; 87 std::unique_ptr<protocol::DictionaryValue> m_state;
86 88
87 std::unique_ptr<V8RuntimeAgentImpl> m_runtimeAgent; 89 std::unique_ptr<V8RuntimeAgentImpl> m_runtimeAgent;
88 std::unique_ptr<V8DebuggerAgentImpl> m_debuggerAgent; 90 std::unique_ptr<V8DebuggerAgentImpl> m_debuggerAgent;
89 std::unique_ptr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; 91 std::unique_ptr<V8HeapProfilerAgentImpl> m_heapProfilerAgent;
90 std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent; 92 std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent;
93 std::unique_ptr<V8ConsoleAgentImpl> m_consoleAgent;
91 protocol::Vector<std::unique_ptr<V8InspectorSession::Inspectable>> m_inspect edObjects; 94 protocol::Vector<std::unique_ptr<V8InspectorSession::Inspectable>> m_inspect edObjects;
92 }; 95 };
93 96
94 } // namespace blink 97 } // namespace blink
95 98
96 #endif 99 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698