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 #include "platform/v8_inspector/V8InspectorSessionImpl.h" | 5 #include "platform/v8_inspector/V8InspectorSessionImpl.h" |
6 | 6 |
7 #include "platform/inspector_protocol/Parser.h" | 7 #include "platform/inspector_protocol/Parser.h" |
8 #include "platform/v8_inspector/InjectedScript.h" | 8 #include "platform/v8_inspector/InjectedScript.h" |
9 #include "platform/v8_inspector/InspectedContext.h" | 9 #include "platform/v8_inspector/InspectedContext.h" |
10 #include "platform/v8_inspector/RemoteObjectId.h" | 10 #include "platform/v8_inspector/RemoteObjectId.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 state = newState.get(); | 100 state = newState.get(); |
101 m_state->setObject(name, std::move(newState)); | 101 m_state->setObject(name, std::move(newState)); |
102 } | 102 } |
103 return state; | 103 return state; |
104 } | 104 } |
105 | 105 |
106 void V8InspectorSessionImpl::reset() | 106 void V8InspectorSessionImpl::reset() |
107 { | 107 { |
108 m_debuggerAgent->reset(); | 108 m_debuggerAgent->reset(); |
109 m_runtimeAgent->reset(); | 109 m_runtimeAgent->reset(); |
110 m_consoleAgent->reset(); | |
111 discardInjectedScripts(); | 110 discardInjectedScripts(); |
112 } | 111 } |
113 | 112 |
114 void V8InspectorSessionImpl::discardInjectedScripts() | 113 void V8InspectorSessionImpl::discardInjectedScripts() |
115 { | 114 { |
116 m_inspectedObjects.clear(); | 115 m_inspectedObjects.clear(); |
117 const V8DebuggerImpl::ContextByIdMap* contexts = m_debugger->contextGroup(m_
contextGroupId); | 116 const V8DebuggerImpl::ContextByIdMap* contexts = m_debugger->contextGroup(m_
contextGroupId); |
118 if (!contexts) | 117 if (!contexts) |
119 return; | 118 return; |
120 | 119 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 m_debuggerAgent->resume(&errorString); | 295 m_debuggerAgent->resume(&errorString); |
297 } | 296 } |
298 | 297 |
299 void V8InspectorSessionImpl::stepOver() | 298 void V8InspectorSessionImpl::stepOver() |
300 { | 299 { |
301 ErrorString errorString; | 300 ErrorString errorString; |
302 m_debuggerAgent->stepOver(&errorString); | 301 m_debuggerAgent->stepOver(&errorString); |
303 } | 302 } |
304 | 303 |
305 } // namespace blink | 304 } // namespace blink |
OLD | NEW |