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

Side by Side Diff: src/inspector/V8DebuggerAgentImpl.cpp

Issue 2292053003: [inspector] Build inspector under v8_enable_inspector build flag. (Closed)
Patch Set: owners Created 4 years, 3 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 V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project 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 "src/inspector/V8DebuggerAgentImpl.h" 5 #include "src/inspector/V8DebuggerAgentImpl.h"
6 6
7 #include "src/inspector/InjectedScript.h" 7 #include "src/inspector/InjectedScript.h"
8 #include "src/inspector/InspectedContext.h" 8 #include "src/inspector/InspectedContext.h"
9 #include "src/inspector/JavaScriptCallFrame.h" 9 #include "src/inspector/JavaScriptCallFrame.h"
10 #include "src/inspector/RemoteObjectId.h" 10 #include "src/inspector/RemoteObjectId.h"
11 #include "src/inspector/ScriptBreakpoint.h" 11 #include "src/inspector/ScriptBreakpoint.h"
12 #include "src/inspector/SearchUtil.h" 12 #include "src/inspector/SearchUtil.h"
13 #include "src/inspector/StringUtil.h" 13 #include "src/inspector/StringUtil.h"
14 #include "src/inspector/V8Debugger.h" 14 #include "src/inspector/V8Debugger.h"
15 #include "src/inspector/V8DebuggerScript.h" 15 #include "src/inspector/V8DebuggerScript.h"
16 #include "src/inspector/V8InspectorImpl.h" 16 #include "src/inspector/V8InspectorImpl.h"
17 #include "src/inspector/V8InspectorSessionImpl.h" 17 #include "src/inspector/V8InspectorSessionImpl.h"
18 #include "src/inspector/V8Regex.h" 18 #include "src/inspector/V8Regex.h"
19 #include "src/inspector/V8RuntimeAgentImpl.h" 19 #include "src/inspector/V8RuntimeAgentImpl.h"
20 #include "src/inspector/V8StackTraceImpl.h" 20 #include "src/inspector/V8StackTraceImpl.h"
21 #include "src/inspector/protocol/Protocol.h" 21 #include "src/inspector/protocol/Protocol.h"
22 #include "src/inspector/public/V8InspectorClient.h" 22
23 #include "include/v8-inspector.h"
23 24
24 #include <algorithm> 25 #include <algorithm>
25 26
26 namespace v8_inspector { 27 namespace v8_inspector {
27 28
28 using protocol::Array; 29 using protocol::Array;
29 using protocol::Maybe; 30 using protocol::Maybe;
30 using protocol::Debugger::BreakpointId; 31 using protocol::Debugger::BreakpointId;
31 using protocol::Debugger::CallFrame; 32 using protocol::Debugger::CallFrame;
32 using protocol::Runtime::ExceptionDetails; 33 using protocol::Runtime::ExceptionDetails;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 m_state->booleanProperty(DebuggerAgentState::skipAllPauses, false); 209 m_state->booleanProperty(DebuggerAgentState::skipAllPauses, false);
209 210
210 int asyncCallStackDepth = 0; 211 int asyncCallStackDepth = 0;
211 m_state->getInteger(DebuggerAgentState::asyncCallStackDepth, 212 m_state->getInteger(DebuggerAgentState::asyncCallStackDepth,
212 &asyncCallStackDepth); 213 &asyncCallStackDepth);
213 m_debugger->setAsyncCallStackDepth(this, asyncCallStackDepth); 214 m_debugger->setAsyncCallStackDepth(this, asyncCallStackDepth);
214 215
215 String16 blackboxPattern; 216 String16 blackboxPattern;
216 if (m_state->getString(DebuggerAgentState::blackboxPattern, 217 if (m_state->getString(DebuggerAgentState::blackboxPattern,
217 &blackboxPattern)) { 218 &blackboxPattern)) {
218 if (!setBlackboxPattern(&error, blackboxPattern)) NOTREACHED(); 219 if (!setBlackboxPattern(&error, blackboxPattern)) UNREACHABLE();
219 } 220 }
220 } 221 }
221 222
222 void V8DebuggerAgentImpl::setBreakpointsActive(ErrorString* errorString, 223 void V8DebuggerAgentImpl::setBreakpointsActive(ErrorString* errorString,
223 bool active) { 224 bool active) {
224 if (!checkEnabled(errorString)) return; 225 if (!checkEnabled(errorString)) return;
225 m_debugger->setBreakpointsActivated(active); 226 m_debugger->setBreakpointsActivated(active);
226 } 227 }
227 228
228 void V8DebuggerAgentImpl::setSkipAllPauses(ErrorString*, bool skip) { 229 void V8DebuggerAgentImpl::setSkipAllPauses(ErrorString*, bool skip) {
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 1241
1241 void V8DebuggerAgentImpl::reset() { 1242 void V8DebuggerAgentImpl::reset() {
1242 if (!enabled()) return; 1243 if (!enabled()) return;
1243 m_scheduledDebuggerStep = NoStep; 1244 m_scheduledDebuggerStep = NoStep;
1244 m_scripts.clear(); 1245 m_scripts.clear();
1245 m_blackboxedPositions.clear(); 1246 m_blackboxedPositions.clear();
1246 m_breakpointIdToDebuggerBreakpointIds.clear(); 1247 m_breakpointIdToDebuggerBreakpointIds.clear();
1247 } 1248 }
1248 1249
1249 } // namespace v8_inspector 1250 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698