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

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

Issue 1866213002: [DevTools] Move inspect from Inspector to Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inspector-connection
Patch Set: Created 4 years, 8 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/String16.h" 10 #include "platform/inspector_protocol/String16.h"
(...skipping 19 matching lines...) Expand all
30 class V8RuntimeAgentImpl; 30 class V8RuntimeAgentImpl;
31 31
32 class V8InspectorSessionImpl : public V8InspectorSession { 32 class V8InspectorSessionImpl : public V8InspectorSession {
33 PROTOCOL_DISALLOW_COPY(V8InspectorSessionImpl); 33 PROTOCOL_DISALLOW_COPY(V8InspectorSessionImpl);
34 public: 34 public:
35 static PassOwnPtr<V8InspectorSessionImpl> create(V8DebuggerImpl*, int contex tGroupId); 35 static PassOwnPtr<V8InspectorSessionImpl> create(V8DebuggerImpl*, int contex tGroupId);
36 ~V8InspectorSessionImpl(); 36 ~V8InspectorSessionImpl();
37 37
38 V8DebuggerImpl* debugger() const { return m_debugger; } 38 V8DebuggerImpl* debugger() const { return m_debugger; }
39 V8DebuggerAgentImpl* debuggerAgentImpl() { return m_debuggerAgent.get(); } 39 V8DebuggerAgentImpl* debuggerAgentImpl() { return m_debuggerAgent.get(); }
40 V8RuntimeAgentImpl* runtimeAgentImpl() { return m_runtimeAgent.get(); }
40 int contextGroupId() const { return m_contextGroupId; } 41 int contextGroupId() const { return m_contextGroupId; }
41 42
42 InjectedScript* findInjectedScript(ErrorString*, int contextId); 43 InjectedScript* findInjectedScript(ErrorString*, int contextId);
43 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*); 44 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*);
44 void resetInjectedScripts(); 45 void resetInjectedScripts();
45 void reportAllContexts(V8RuntimeAgentImpl*); 46 void reportAllContexts(V8RuntimeAgentImpl*);
46 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); 47 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>);
47 void releaseObjectGroup(const String16& objectGroup); 48 void releaseObjectGroup(const String16& objectGroup);
48 void setCustomObjectFormatterEnabled(bool); 49 void setCustomObjectFormatterEnabled(bool);
49 50
50 // V8InspectorSession implementation. 51 // V8InspectorSession implementation.
51 V8DebuggerAgent* debuggerAgent() override; 52 V8DebuggerAgent* debuggerAgent() override;
52 V8HeapProfilerAgent* heapProfilerAgent() override; 53 V8HeapProfilerAgent* heapProfilerAgent() override;
53 V8ProfilerAgent* profilerAgent() override; 54 V8ProfilerAgent* profilerAgent() override;
54 V8RuntimeAgent* runtimeAgent() override; 55 V8RuntimeAgent* runtimeAgent() override;
55 56
56 void setClearConsoleCallback(PassOwnPtr<V8RuntimeAgent::ClearConsoleCallback > callback) { m_clearConsoleCallback = callback; } 57 void setClearConsoleCallback(PassOwnPtr<V8RuntimeAgent::ClearConsoleCallback > callback) { m_clearConsoleCallback = callback; }
57 V8RuntimeAgent::ClearConsoleCallback* clearConsoleCallback() { return m_clea rConsoleCallback.get(); } 58 V8RuntimeAgent::ClearConsoleCallback* clearConsoleCallback() { return m_clea rConsoleCallback.get(); }
58 void setInspectObjectCallback(PassOwnPtr<V8RuntimeAgent::InspectCallback> ca llback) { m_inspectCallback = callback; }
59 V8RuntimeAgent::InspectCallback* inspectCallback() { return m_inspectCallbac k.get(); }
60 59
61 private: 60 private:
62 friend class InspectedContext; 61 friend class InspectedContext;
63 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId); 62 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId);
64 63
65 int m_contextGroupId; 64 int m_contextGroupId;
66 V8DebuggerImpl* m_debugger; 65 V8DebuggerImpl* m_debugger;
67 OwnPtr<InjectedScriptHost> m_injectedScriptHost; 66 OwnPtr<InjectedScriptHost> m_injectedScriptHost;
68 bool m_customObjectFormatterEnabled; 67 bool m_customObjectFormatterEnabled;
69 68
70 OwnPtr<V8RuntimeAgentImpl> m_runtimeAgent; 69 OwnPtr<V8RuntimeAgentImpl> m_runtimeAgent;
71 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent; 70 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent;
72 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; 71 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent;
73 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent; 72 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent;
74 73
75 OwnPtr<V8RuntimeAgent::InspectCallback> m_inspectCallback;
76 OwnPtr<V8RuntimeAgent::ClearConsoleCallback> m_clearConsoleCallback; 74 OwnPtr<V8RuntimeAgent::ClearConsoleCallback> m_clearConsoleCallback;
77 }; 75 };
78 76
79 } // namespace blink 77 } // namespace blink
80 78
81 #endif 79 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698