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

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

Issue 2112593003: [DevTools] Remove [V8] from InspectorInstrumentation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: migrated to inspector-protocol test Created 4 years, 5 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/DispatcherBase.h" 9 #include "platform/inspector_protocol/DispatcherBase.h"
10 #include "platform/inspector_protocol/Platform.h" 10 #include "platform/inspector_protocol/Platform.h"
(...skipping 30 matching lines...) Expand all
41 V8ProfilerAgentImpl* profilerAgent() { return m_profilerAgent.get(); } 41 V8ProfilerAgentImpl* profilerAgent() { return m_profilerAgent.get(); }
42 V8RuntimeAgentImpl* runtimeAgent() { return m_runtimeAgent.get(); } 42 V8RuntimeAgentImpl* runtimeAgent() { return m_runtimeAgent.get(); }
43 int contextGroupId() const { return m_contextGroupId; } 43 int contextGroupId() const { return m_contextGroupId; }
44 44
45 InjectedScript* findInjectedScript(ErrorString*, int contextId); 45 InjectedScript* findInjectedScript(ErrorString*, int contextId);
46 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*); 46 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*);
47 void reset(); 47 void reset();
48 void discardInjectedScripts(); 48 void discardInjectedScripts();
49 void reportAllContexts(V8RuntimeAgentImpl*); 49 void reportAllContexts(V8RuntimeAgentImpl*);
50 void setCustomObjectFormatterEnabled(bool); 50 void setCustomObjectFormatterEnabled(bool);
51 void changeInstrumentationCounter(int delta);
52 51
53 // V8InspectorSession implementation. 52 // V8InspectorSession implementation.
54 void dispatchProtocolMessage(const String16& message) override; 53 void dispatchProtocolMessage(const String16& message) override;
55 String16 stateJSON() override; 54 String16 stateJSON() override;
56 void addInspectedObject(std::unique_ptr<V8InspectorSession::Inspectable>) ov erride; 55 void addInspectedObject(std::unique_ptr<V8InspectorSession::Inspectable>) ov erride;
57 void schedulePauseOnNextStatement(const String16& breakReason, std::unique_p tr<protocol::DictionaryValue> data) override; 56 void schedulePauseOnNextStatement(const String16& breakReason, std::unique_p tr<protocol::DictionaryValue> data) override;
58 void cancelPauseOnNextStatement() override; 57 void cancelPauseOnNextStatement() override;
59 void breakProgram(const String16& breakReason, std::unique_ptr<protocol::Dic tionaryValue> data) override; 58 void breakProgram(const String16& breakReason, std::unique_ptr<protocol::Dic tionaryValue> data) override;
60 void breakProgramOnException(const String16& breakReason, std::unique_ptr<pr otocol::DictionaryValue> data) override;
61 void setSkipAllPauses(bool) override; 59 void setSkipAllPauses(bool) override;
62 void resume() override; 60 void resume() override;
63 void stepOver() override; 61 void stepOver() override;
64 void releaseObjectGroup(const String16& objectGroup) override; 62 void releaseObjectGroup(const String16& objectGroup) override;
65 v8::Local<v8::Value> findObject(ErrorString*, const String16& objectId, v8:: Local<v8::Context>* = nullptr, String16* groupName = nullptr) override; 63 v8::Local<v8::Value> findObject(ErrorString*, const String16& objectId, v8:: Local<v8::Context>* = nullptr, String16* groupName = nullptr) override;
66 std::unique_ptr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8::Co ntext>, v8::Local<v8::Value>, const String16& groupName, bool generatePreview = false) override; 64 std::unique_ptr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8::Co ntext>, v8::Local<v8::Value>, const String16& groupName, bool generatePreview = false) override;
67 std::unique_ptr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Con text>, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) override; 65 std::unique_ptr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Con text>, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) override;
68 66
69 V8InspectorSession::Inspectable* inspectedObject(unsigned num); 67 V8InspectorSession::Inspectable* inspectedObject(unsigned num);
70 static const unsigned kInspectedObjectBufferSize = 5; 68 static const unsigned kInspectedObjectBufferSize = 5;
71 69
72 private: 70 private:
73 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId, protocol::Fronte ndChannel*, V8InspectorSessionClient*, const String16* state); 71 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId, protocol::Fronte ndChannel*, V8InspectorSessionClient*, const String16* state);
74 protocol::DictionaryValue* agentState(const String16& name); 72 protocol::DictionaryValue* agentState(const String16& name);
75 73
76 int m_contextGroupId; 74 int m_contextGroupId;
77 V8DebuggerImpl* m_debugger; 75 V8DebuggerImpl* m_debugger;
78 V8InspectorSessionClient* m_client; 76 V8InspectorSessionClient* m_client;
79 bool m_customObjectFormatterEnabled; 77 bool m_customObjectFormatterEnabled;
80 int m_instrumentationCounter;
81 78
82 protocol::UberDispatcher m_dispatcher; 79 protocol::UberDispatcher m_dispatcher;
83 std::unique_ptr<protocol::DictionaryValue> m_state; 80 std::unique_ptr<protocol::DictionaryValue> m_state;
84 81
85 std::unique_ptr<V8RuntimeAgentImpl> m_runtimeAgent; 82 std::unique_ptr<V8RuntimeAgentImpl> m_runtimeAgent;
86 std::unique_ptr<V8DebuggerAgentImpl> m_debuggerAgent; 83 std::unique_ptr<V8DebuggerAgentImpl> m_debuggerAgent;
87 std::unique_ptr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; 84 std::unique_ptr<V8HeapProfilerAgentImpl> m_heapProfilerAgent;
88 std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent; 85 std::unique_ptr<V8ProfilerAgentImpl> m_profilerAgent;
89 std::unique_ptr<V8ConsoleAgentImpl> m_consoleAgent; 86 std::unique_ptr<V8ConsoleAgentImpl> m_consoleAgent;
90 std::vector<std::unique_ptr<V8InspectorSession::Inspectable>> m_inspectedObj ects; 87 std::vector<std::unique_ptr<V8InspectorSession::Inspectable>> m_inspectedObj ects;
91 }; 88 };
92 89
93 } // namespace blink 90 } // namespace blink
94 91
95 #endif 92 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698