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

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

Issue 2343733002: [inspector] enabled presubmit for inspector sub folder (Closed)
Patch Set: more fixes 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 <algorithm>
8
7 #include "src/inspector/InjectedScript.h" 9 #include "src/inspector/InjectedScript.h"
8 #include "src/inspector/InspectedContext.h" 10 #include "src/inspector/InspectedContext.h"
9 #include "src/inspector/JavaScriptCallFrame.h" 11 #include "src/inspector/JavaScriptCallFrame.h"
10 #include "src/inspector/RemoteObjectId.h" 12 #include "src/inspector/RemoteObjectId.h"
11 #include "src/inspector/ScriptBreakpoint.h" 13 #include "src/inspector/ScriptBreakpoint.h"
12 #include "src/inspector/SearchUtil.h" 14 #include "src/inspector/SearchUtil.h"
13 #include "src/inspector/StringUtil.h" 15 #include "src/inspector/StringUtil.h"
14 #include "src/inspector/V8Debugger.h" 16 #include "src/inspector/V8Debugger.h"
15 #include "src/inspector/V8DebuggerScript.h" 17 #include "src/inspector/V8DebuggerScript.h"
16 #include "src/inspector/V8InspectorImpl.h" 18 #include "src/inspector/V8InspectorImpl.h"
17 #include "src/inspector/V8InspectorSessionImpl.h" 19 #include "src/inspector/V8InspectorSessionImpl.h"
18 #include "src/inspector/V8Regex.h" 20 #include "src/inspector/V8Regex.h"
19 #include "src/inspector/V8RuntimeAgentImpl.h" 21 #include "src/inspector/V8RuntimeAgentImpl.h"
20 #include "src/inspector/V8StackTraceImpl.h" 22 #include "src/inspector/V8StackTraceImpl.h"
21 #include "src/inspector/protocol/Protocol.h" 23 #include "src/inspector/protocol/Protocol.h"
22 24
23 #include "include/v8-inspector.h" 25 #include "include/v8-inspector.h"
24 26
25 #include <algorithm>
26
27 namespace v8_inspector { 27 namespace v8_inspector {
28 28
29 using protocol::Array; 29 using protocol::Array;
30 using protocol::Maybe; 30 using protocol::Maybe;
31 using protocol::Debugger::BreakpointId; 31 using protocol::Debugger::BreakpointId;
32 using protocol::Debugger::CallFrame; 32 using protocol::Debugger::CallFrame;
33 using protocol::Runtime::ExceptionDetails; 33 using protocol::Runtime::ExceptionDetails;
34 using protocol::Runtime::ScriptId; 34 using protocol::Runtime::ScriptId;
35 using protocol::Runtime::StackTrace; 35 using protocol::Runtime::StackTrace;
36 using protocol::Runtime::RemoteObject; 36 using protocol::Runtime::RemoteObject;
37 37
38 namespace DebuggerAgentState { 38 namespace DebuggerAgentState {
39 static const char javaScriptBreakpoints[] = "javaScriptBreakopints"; 39 static const char javaScriptBreakpoints[] = "javaScriptBreakopints";
40 static const char pauseOnExceptionsState[] = "pauseOnExceptionsState"; 40 static const char pauseOnExceptionsState[] = "pauseOnExceptionsState";
41 static const char asyncCallStackDepth[] = "asyncCallStackDepth"; 41 static const char asyncCallStackDepth[] = "asyncCallStackDepth";
42 static const char blackboxPattern[] = "blackboxPattern"; 42 static const char blackboxPattern[] = "blackboxPattern";
43 static const char debuggerEnabled[] = "debuggerEnabled"; 43 static const char debuggerEnabled[] = "debuggerEnabled";
44 44
45 // Breakpoint properties. 45 // Breakpoint properties.
46 static const char url[] = "url"; 46 static const char url[] = "url";
47 static const char isRegex[] = "isRegex"; 47 static const char isRegex[] = "isRegex";
48 static const char lineNumber[] = "lineNumber"; 48 static const char lineNumber[] = "lineNumber";
49 static const char columnNumber[] = "columnNumber"; 49 static const char columnNumber[] = "columnNumber";
50 static const char condition[] = "condition"; 50 static const char condition[] = "condition";
51 static const char skipAllPauses[] = "skipAllPauses"; 51 static const char skipAllPauses[] = "skipAllPauses";
52 52
53 } // namespace DebuggerAgentState; 53 } // namespace DebuggerAgentState
54 54
55 static const int maxSkipStepFrameCount = 128; 55 static const int maxSkipStepFrameCount = 128;
56 static const char backtraceObjectGroup[] = "backtrace"; 56 static const char backtraceObjectGroup[] = "backtrace";
57 57
58 static String16 breakpointIdSuffix( 58 static String16 breakpointIdSuffix(
59 V8DebuggerAgentImpl::BreakpointSource source) { 59 V8DebuggerAgentImpl::BreakpointSource source) {
60 switch (source) { 60 switch (source) {
61 case V8DebuggerAgentImpl::UserBreakpointSource: 61 case V8DebuggerAgentImpl::UserBreakpointSource:
62 break; 62 break;
63 case V8DebuggerAgentImpl::DebugCommandBreakpointSource: 63 case V8DebuggerAgentImpl::DebugCommandBreakpointSource:
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 1243
1244 void V8DebuggerAgentImpl::reset() { 1244 void V8DebuggerAgentImpl::reset() {
1245 if (!enabled()) return; 1245 if (!enabled()) return;
1246 m_scheduledDebuggerStep = NoStep; 1246 m_scheduledDebuggerStep = NoStep;
1247 m_scripts.clear(); 1247 m_scripts.clear();
1248 m_blackboxedPositions.clear(); 1248 m_blackboxedPositions.clear();
1249 m_breakpointIdToDebuggerBreakpointIds.clear(); 1249 m_breakpointIdToDebuggerBreakpointIds.clear();
1250 } 1250 }
1251 1251
1252 } // namespace v8_inspector 1252 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698