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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 void releaseObjectGroup(const String16& objectGroup); | 48 void releaseObjectGroup(const String16& objectGroup); |
49 void setCustomObjectFormatterEnabled(bool); | 49 void setCustomObjectFormatterEnabled(bool); |
50 void changeInstrumentationCounter(int delta); | 50 void changeInstrumentationCounter(int delta); |
51 | 51 |
52 // V8InspectorSession implementation. | 52 // V8InspectorSession implementation. |
53 void setClient(V8InspectorSessionClient*) override; | 53 void setClient(V8InspectorSessionClient*) override; |
54 V8DebuggerAgent* debuggerAgent() override; | 54 V8DebuggerAgent* debuggerAgent() override; |
55 V8HeapProfilerAgent* heapProfilerAgent() override; | 55 V8HeapProfilerAgent* heapProfilerAgent() override; |
56 V8ProfilerAgent* profilerAgent() override; | 56 V8ProfilerAgent* profilerAgent() override; |
57 V8RuntimeAgent* runtimeAgent() override; | 57 V8RuntimeAgent* runtimeAgent() override; |
| 58 void schedulePauseOnNextStatement(const String16& breakReason, PassOwnPtr<pr
otocol::DictionaryValue> data) override; |
| 59 void cancelPauseOnNextStatement() override; |
| 60 void breakProgram(const String16& breakReason, PassOwnPtr<protocol::Dictiona
ryValue> data) override; |
| 61 void breakProgramOnException(const String16& breakReason, PassOwnPtr<protoco
l::DictionaryValue> data) override; |
| 62 void setSkipAllPauses(bool) override; |
| 63 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring
) override; |
| 64 void asyncTaskCanceled(void* task) override; |
| 65 void asyncTaskStarted(void* task) override; |
| 66 void asyncTaskFinished(void* task) override; |
| 67 void allAsyncTasksCanceled() override; |
58 | 68 |
59 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); | 69 void addInspectedObject(PassOwnPtr<V8RuntimeAgent::Inspectable>); |
60 V8RuntimeAgent::Inspectable* inspectedObject(unsigned num); | 70 V8RuntimeAgent::Inspectable* inspectedObject(unsigned num); |
61 static const unsigned kInspectedObjectBufferSize = 5; | 71 static const unsigned kInspectedObjectBufferSize = 5; |
62 | 72 |
63 private: | 73 private: |
64 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId); | 74 V8InspectorSessionImpl(V8DebuggerImpl*, int contextGroupId); |
65 | 75 |
66 int m_contextGroupId; | 76 int m_contextGroupId; |
67 V8DebuggerImpl* m_debugger; | 77 V8DebuggerImpl* m_debugger; |
68 V8InspectorSessionClient* m_client; | 78 V8InspectorSessionClient* m_client; |
69 OwnPtr<InjectedScriptHost> m_injectedScriptHost; | 79 OwnPtr<InjectedScriptHost> m_injectedScriptHost; |
70 bool m_customObjectFormatterEnabled; | 80 bool m_customObjectFormatterEnabled; |
71 int m_instrumentationCounter; | 81 int m_instrumentationCounter; |
72 | 82 |
73 OwnPtr<V8RuntimeAgentImpl> m_runtimeAgent; | 83 OwnPtr<V8RuntimeAgentImpl> m_runtimeAgent; |
74 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent; | 84 OwnPtr<V8DebuggerAgentImpl> m_debuggerAgent; |
75 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; | 85 OwnPtr<V8HeapProfilerAgentImpl> m_heapProfilerAgent; |
76 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent; | 86 OwnPtr<V8ProfilerAgentImpl> m_profilerAgent; |
77 protocol::Vector<OwnPtr<V8RuntimeAgent::Inspectable>> m_inspectedObjects; | 87 protocol::Vector<OwnPtr<V8RuntimeAgent::Inspectable>> m_inspectedObjects; |
78 }; | 88 }; |
79 | 89 |
80 } // namespace blink | 90 } // namespace blink |
81 | 91 |
82 #endif | 92 #endif |
OLD | NEW |