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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp

Issue 2219393003: DevTools: Runtime.compileScript with persistScript = false should not report script (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 4 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 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/Parser.h" 7 #include "platform/inspector_protocol/Parser.h"
8 #include "platform/inspector_protocol/String16.h" 8 #include "platform/inspector_protocol/String16.h"
9 #include "platform/inspector_protocol/Values.h" 9 #include "platform/inspector_protocol/Values.h"
10 #include "platform/v8_inspector/InjectedScript.h" 10 #include "platform/v8_inspector/InjectedScript.h"
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 m_debugger->breakProgram(); 1157 m_debugger->breakProgram();
1158 } 1158 }
1159 1159
1160 void V8DebuggerAgentImpl::breakProgramOnException(const String16& breakReason, s td::unique_ptr<protocol::DictionaryValue> data) 1160 void V8DebuggerAgentImpl::breakProgramOnException(const String16& breakReason, s td::unique_ptr<protocol::DictionaryValue> data)
1161 { 1161 {
1162 if (!enabled() || m_debugger->getPauseOnExceptionsState() == V8Debugger::Don tPauseOnExceptions) 1162 if (!enabled() || m_debugger->getPauseOnExceptionsState() == V8Debugger::Don tPauseOnExceptions)
1163 return; 1163 return;
1164 breakProgram(breakReason, std::move(data)); 1164 breakProgram(breakReason, std::move(data));
1165 } 1165 }
1166 1166
1167 void V8DebuggerAgentImpl::setIgnoreScriptParsedEvents(bool ignore)
1168 {
1169 m_debugger->setIgnoreScriptParsedEvents(ignore);
1170 }
1171
1167 bool V8DebuggerAgentImpl::assertPaused(ErrorString* errorString) 1172 bool V8DebuggerAgentImpl::assertPaused(ErrorString* errorString)
1168 { 1173 {
1169 if (m_pausedContext.IsEmpty()) { 1174 if (m_pausedContext.IsEmpty()) {
1170 *errorString = "Can only perform operation while paused."; 1175 *errorString = "Can only perform operation while paused.";
1171 return false; 1176 return false;
1172 } 1177 }
1173 return true; 1178 return true;
1174 } 1179 }
1175 1180
1176 void V8DebuggerAgentImpl::clearBreakDetails() 1181 void V8DebuggerAgentImpl::clearBreakDetails()
(...skipping 18 matching lines...) Expand all
1195 { 1200 {
1196 if (!enabled()) 1201 if (!enabled())
1197 return; 1202 return;
1198 m_scheduledDebuggerStep = NoStep; 1203 m_scheduledDebuggerStep = NoStep;
1199 m_scripts.clear(); 1204 m_scripts.clear();
1200 m_blackboxedPositions.clear(); 1205 m_blackboxedPositions.clear();
1201 m_breakpointIdToDebuggerBreakpointIds.clear(); 1206 m_breakpointIdToDebuggerBreakpointIds.clear();
1202 } 1207 }
1203 1208
1204 } // namespace blink 1209 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698