| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/V8DebuggerAgentImpl.h" | 5 #include "platform/v8_inspector/V8DebuggerAgentImpl.h" |
| 6 | 6 |
| 7 #include "platform/inspector_protocol/String16.h" | 7 #include "platform/inspector_protocol/String16.h" |
| 8 #include "platform/inspector_protocol/Values.h" | 8 #include "platform/inspector_protocol/Values.h" |
| 9 #include "platform/v8_inspector/InjectedScript.h" | 9 #include "platform/v8_inspector/InjectedScript.h" |
| 10 #include "platform/v8_inspector/InspectedContext.h" | 10 #include "platform/v8_inspector/InspectedContext.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 } | 148 } |
| 149 | 149 |
| 150 static std::unique_ptr<protocol::Debugger::Location> buildProtocolLocation(const
String16& scriptId, int lineNumber, int columnNumber) | 150 static std::unique_ptr<protocol::Debugger::Location> buildProtocolLocation(const
String16& scriptId, int lineNumber, int columnNumber) |
| 151 { | 151 { |
| 152 return protocol::Debugger::Location::create() | 152 return protocol::Debugger::Location::create() |
| 153 .setScriptId(scriptId) | 153 .setScriptId(scriptId) |
| 154 .setLineNumber(lineNumber) | 154 .setLineNumber(lineNumber) |
| 155 .setColumnNumber(columnNumber).build(); | 155 .setColumnNumber(columnNumber).build(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 V8DebuggerAgentImpl::V8DebuggerAgentImpl(V8InspectorSessionImpl* session, protoc
ol::Frontend::Debugger* frontend, protocol::DictionaryValue* state) | 158 V8DebuggerAgentImpl::V8DebuggerAgentImpl(V8InspectorSessionImpl* session, protoc
ol::Debugger::Frontend* frontend, protocol::DictionaryValue* state) |
| 159 : m_debugger(session->debugger()) | 159 : m_debugger(session->debugger()) |
| 160 , m_session(session) | 160 , m_session(session) |
| 161 , m_enabled(false) | 161 , m_enabled(false) |
| 162 , m_state(state) | 162 , m_state(state) |
| 163 , m_frontend(frontend) | 163 , m_frontend(frontend) |
| 164 , m_isolate(m_debugger->isolate()) | 164 , m_isolate(m_debugger->isolate()) |
| 165 , m_breakReason(protocol::Debugger::Paused::ReasonEnum::Other) | 165 , m_breakReason(protocol::Debugger::Paused::ReasonEnum::Other) |
| 166 , m_scheduledDebuggerStep(NoStep) | 166 , m_scheduledDebuggerStep(NoStep) |
| 167 , m_skipNextDebuggerStepOut(false) | 167 , m_skipNextDebuggerStepOut(false) |
| 168 , m_javaScriptPauseScheduled(false) | 168 , m_javaScriptPauseScheduled(false) |
| (...skipping 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 if (!enabled()) | 1446 if (!enabled()) |
| 1447 return; | 1447 return; |
| 1448 m_scheduledDebuggerStep = NoStep; | 1448 m_scheduledDebuggerStep = NoStep; |
| 1449 m_scripts.clear(); | 1449 m_scripts.clear(); |
| 1450 m_blackboxedPositions.clear(); | 1450 m_blackboxedPositions.clear(); |
| 1451 m_breakpointIdToDebuggerBreakpointIds.clear(); | 1451 m_breakpointIdToDebuggerBreakpointIds.clear(); |
| 1452 allAsyncTasksCanceled(); | 1452 allAsyncTasksCanceled(); |
| 1453 } | 1453 } |
| 1454 | 1454 |
| 1455 } // namespace blink | 1455 } // namespace blink |
| OLD | NEW |