| 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 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 26 matching lines...) Expand all Loading... |
| 37 V8DebuggerAgentImpl* debuggerAgentImpl() { return m_debuggerAgent.get(); } | 37 V8DebuggerAgentImpl* debuggerAgentImpl() { return m_debuggerAgent.get(); } |
| 38 V8ProfilerAgentImpl* profilerAgentImpl() { return m_profilerAgent.get(); } | 38 V8ProfilerAgentImpl* profilerAgentImpl() { return m_profilerAgent.get(); } |
| 39 V8RuntimeAgentImpl* runtimeAgentImpl() { return m_runtimeAgent.get(); } | 39 V8RuntimeAgentImpl* runtimeAgentImpl() { return m_runtimeAgent.get(); } |
| 40 int contextGroupId() const { return m_contextGroupId; } | 40 int contextGroupId() const { return m_contextGroupId; } |
| 41 | 41 |
| 42 InjectedScript* findInjectedScript(ErrorString*, int contextId); | 42 InjectedScript* findInjectedScript(ErrorString*, int contextId); |
| 43 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*); | 43 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*); |
| 44 void reset(); | 44 void reset(); |
| 45 void discardInjectedScripts(); | 45 void discardInjectedScripts(); |
| 46 void reportAllContexts(V8RuntimeAgentImpl*); | 46 void reportAllContexts(V8RuntimeAgentImpl*); |
| 47 void releaseObjectGroup(const String16& objectGroup); | |
| 48 void setCustomObjectFormatterEnabled(bool); | 47 void setCustomObjectFormatterEnabled(bool); |
| 49 void changeInstrumentationCounter(int delta); | 48 void changeInstrumentationCounter(int delta); |
| 50 | 49 |
| 51 // V8InspectorSession implementation. | 50 // V8InspectorSession implementation. |
| 52 void setClient(V8InspectorSessionClient*) override; | 51 void setClient(V8InspectorSessionClient*) override; |
| 52 void addInspectedObject(PassOwnPtr<V8InspectorSession::Inspectable>) overrid
e; |
| 53 V8DebuggerAgent* debuggerAgent() override; | 53 V8DebuggerAgent* debuggerAgent() override; |
| 54 V8HeapProfilerAgent* heapProfilerAgent() override; | 54 V8HeapProfilerAgent* heapProfilerAgent() override; |
| 55 V8ProfilerAgent* profilerAgent() override; | 55 V8ProfilerAgent* profilerAgent() override; |
| 56 V8RuntimeAgent* runtimeAgent() override; | 56 V8RuntimeAgent* runtimeAgent() override; |
| 57 void schedulePauseOnNextStatement(const String16& breakReason, PassOwnPtr<pr
otocol::DictionaryValue> data) override; | 57 void schedulePauseOnNextStatement(const String16& breakReason, PassOwnPtr<pr
otocol::DictionaryValue> data) override; |
| 58 void cancelPauseOnNextStatement() override; | 58 void cancelPauseOnNextStatement() override; |
| 59 void breakProgram(const String16& breakReason, PassOwnPtr<protocol::Dictiona
ryValue> data) override; | 59 void breakProgram(const String16& breakReason, PassOwnPtr<protocol::Dictiona
ryValue> data) override; |
| 60 void breakProgramOnException(const String16& breakReason, PassOwnPtr<protoco
l::DictionaryValue> data) override; | 60 void breakProgramOnException(const String16& breakReason, PassOwnPtr<protoco
l::DictionaryValue> data) override; |
| 61 void setSkipAllPauses(bool) override; | 61 void setSkipAllPauses(bool) override; |
| 62 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring
) override; | 62 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring
) override; |
| 63 void asyncTaskCanceled(void* task) override; | 63 void asyncTaskCanceled(void* task) override; |
| 64 void asyncTaskStarted(void* task) override; | 64 void asyncTaskStarted(void* task) override; |
| 65 void asyncTaskFinished(void* task) override; | 65 void asyncTaskFinished(void* task) override; |
| 66 void allAsyncTasksCanceled() override; | 66 void allAsyncTasksCanceled() override; |
| 67 void releaseObjectGroup(const String16& objectGroup) override; |
| 68 v8::Local<v8::Value> findObject(ErrorString*, const String16& objectId, v8::
Local<v8::Context>* = nullptr, String16* groupName = nullptr) override; |
| 69 PassOwnPtr<protocol::Runtime::RemoteObject> wrapObject(v8::Local<v8::Context
>, v8::Local<v8::Value>, const String16& groupName, bool generatePreview = false
) override; |
| 70 PassOwnPtr<protocol::Runtime::RemoteObject> wrapTable(v8::Local<v8::Context>
, v8::Local<v8::Value> table, v8::Local<v8::Value> columns) override; |
| 67 | 71 |
| 68 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); | 72 V8InspectorSession::Inspectable* inspectedObject(unsigned num); |
| 69 V8RuntimeAgent::Inspectable* inspectedObject(unsigned num); | |
| 70 static const unsigned kInspectedObjectBufferSize = 5; | 73 static const unsigned kInspectedObjectBufferSize = 5; |
| 71 | 74 |
| 72 private: | 75 private: |
| 73 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId); | 76 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId); |
| 74 | 77 |
| 75 int m_contextGroupId; | 78 int m_contextGroupId; |
| 76 V8DebuggerImpl* m_debugger; | 79 V8DebuggerImpl* m_debugger; |
| 77 V8InspectorSessionClient* m_client; | 80 V8InspectorSessionClient* m_client; |
| 78 bool m_customObjectFormatterEnabled; | 81 bool m_customObjectFormatterEnabled; |
| 79 int m_instrumentationCounter; | 82 int m_instrumentationCounter; |
| 80 | 83 |
| 81 OwnPtr<V8RuntimeAgentImpl> m_runtimeAgent; | 84 OwnPtr<V8RuntimeAgentImpl> m_runtimeAgent; |
| 82 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent; | 85 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent; |
| 83 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; | 86 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; |
| 84 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent; | 87 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent; |
| 85 protocol::Vector<OwnPtr<V8RuntimeAgent::Inspectable>> m_inspectedObjects; | 88 protocol::Vector<OwnPtr<V8InspectorSession::Inspectable>> m_inspectedObjects
; |
| 86 }; | 89 }; |
| 87 | 90 |
| 88 } // namespace blink | 91 } // namespace blink |
| 89 | 92 |
| 90 #endif | 93 #endif |
| OLD | NEW |