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

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

Issue 1924913002: [DevTools] Move API methods from V8DebuggerAgent to V8InspectorSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 #ifndef V8DebuggerAgentImpl_h 5 #ifndef V8DebuggerAgentImpl_h
6 #define V8DebuggerAgentImpl_h 6 #define V8DebuggerAgentImpl_h
7 7
8 #include "platform/inspector_protocol/Collections.h" 8 #include "platform/inspector_protocol/Collections.h"
9 #include "platform/inspector_protocol/Dispatcher.h" 9 #include "platform/inspector_protocol/Dispatcher.h"
10 #include "platform/inspector_protocol/Frontend.h" 10 #include "platform/inspector_protocol/Frontend.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void setInspectorState(protocol::DictionaryValue*) override; 49 void setInspectorState(protocol::DictionaryValue*) override;
50 void setFrontend(protocol::Frontend::Debugger* frontend) override { m_fronte nd = frontend; } 50 void setFrontend(protocol::Frontend::Debugger* frontend) override { m_fronte nd = frontend; }
51 void clearFrontend() override; 51 void clearFrontend() override;
52 void restore() override; 52 void restore() override;
53 void disable(ErrorString*) override; 53 void disable(ErrorString*) override;
54 54
55 // Part of the protocol. 55 // Part of the protocol.
56 void enable(ErrorString*) override; 56 void enable(ErrorString*) override;
57 void setBreakpointsActive(ErrorString*, bool active) override; 57 void setBreakpointsActive(ErrorString*, bool active) override;
58 void setSkipAllPauses(ErrorString*, bool skipped) override; 58 void setSkipAllPauses(ErrorString*, bool skipped) override;
59
60 void setBreakpointByUrl(ErrorString*, 59 void setBreakpointByUrl(ErrorString*,
61 int lineNumber, 60 int lineNumber,
62 const Maybe<String16>& optionalURL, 61 const Maybe<String16>& optionalURL,
63 const Maybe<String16>& optionalURLRegex, 62 const Maybe<String16>& optionalURLRegex,
64 const Maybe<int>& optionalColumnNumber, 63 const Maybe<int>& optionalColumnNumber,
65 const Maybe<String16>& optionalCondition, 64 const Maybe<String16>& optionalCondition,
66 String16*, 65 String16*,
67 OwnPtr<protocol::Array<protocol::Debugger::Location>>* locations) overri de; 66 OwnPtr<protocol::Array<protocol::Debugger::Location>>* locations) overri de;
68 void setBreakpoint(ErrorString*, 67 void setBreakpoint(ErrorString*,
69 PassOwnPtr<protocol::Debugger::Location>, 68 PassOwnPtr<protocol::Debugger::Location>,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 const String16& variableName, 127 const String16& variableName,
129 PassOwnPtr<protocol::Runtime::CallArgument> newValue, 128 PassOwnPtr<protocol::Runtime::CallArgument> newValue,
130 const String16& callFrame) override; 129 const String16& callFrame) override;
131 void setAsyncCallStackDepth(ErrorString*, int depth) override; 130 void setAsyncCallStackDepth(ErrorString*, int depth) override;
132 void setBlackboxPatterns(ErrorString*, 131 void setBlackboxPatterns(ErrorString*,
133 PassOwnPtr<protocol::Array<String16>> patterns) override; 132 PassOwnPtr<protocol::Array<String16>> patterns) override;
134 void setBlackboxedRanges(ErrorString*, 133 void setBlackboxedRanges(ErrorString*,
135 const String16& scriptId, 134 const String16& scriptId,
136 PassOwnPtr<protocol::Array<protocol::Debugger::ScriptPosition>> position s) override; 135 PassOwnPtr<protocol::Array<protocol::Debugger::ScriptPosition>> position s) override;
137 136
138 void schedulePauseOnNextStatement(const String16& breakReason, PassOwnPtr<pr otocol::DictionaryValue> data) override;
139 void cancelPauseOnNextStatement() override;
140 void breakProgram(const String16& breakReason, PassOwnPtr<protocol::Dictiona ryValue> data) override;
141 void breakProgramOnException(const String16& breakReason, PassOwnPtr<protoco l::DictionaryValue> data) override;
142
143 bool enabled(); 137 bool enabled();
144 V8DebuggerImpl& debugger() override { return *m_debugger; } 138 V8DebuggerImpl& debugger() { return *m_debugger; }
145 139
146 void setBreakpointAt(const String16& scriptId, int lineNumber, int columnNum ber, BreakpointSource, const String16& condition = String16()); 140 void setBreakpointAt(const String16& scriptId, int lineNumber, int columnNum ber, BreakpointSource, const String16& condition = String16());
147 void removeBreakpointAt(const String16& scriptId, int lineNumber, int column Number, BreakpointSource); 141 void removeBreakpointAt(const String16& scriptId, int lineNumber, int column Number, BreakpointSource);
142 void schedulePauseOnNextStatement(const String16& breakReason, PassOwnPtr<pr otocol::DictionaryValue> data);
143 void cancelPauseOnNextStatement();
144 void breakProgram(const String16& breakReason, PassOwnPtr<protocol::Dictiona ryValue> data);
145 void breakProgramOnException(const String16& breakReason, PassOwnPtr<protoco l::DictionaryValue> data);
148 146
149 // Async call stacks implementation. 147 // Async call stacks implementation.
150 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring ) override; 148 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring );
151 void asyncTaskCanceled(void* task) override; 149 void asyncTaskCanceled(void* task);
152 void asyncTaskStarted(void* task) override; 150 void asyncTaskStarted(void* task);
153 void asyncTaskFinished(void* task) override; 151 void asyncTaskFinished(void* task);
154 void allAsyncTasksCanceled() override; 152 void allAsyncTasksCanceled();
155 153
156 void reset(); 154 void reset();
157 155
158 // Interface for V8DebuggerImpl 156 // Interface for V8DebuggerImpl
159 SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Value> excep tion, const protocol::Vector<String16>& hitBreakpoints, bool isPromiseRejection) ; 157 SkipPauseRequest didPause(v8::Local<v8::Context>, v8::Local<v8::Value> excep tion, const protocol::Vector<String16>& hitBreakpoints, bool isPromiseRejection) ;
160 void didContinue(); 158 void didContinue();
161 void didParseSource(const V8DebuggerParsedScript&); 159 void didParseSource(const V8DebuggerParsedScript&);
162 bool v8AsyncTaskEventsEnabled() const; 160 bool v8AsyncTaskEventsEnabled() const;
163 void didReceiveV8AsyncTaskEvent(v8::Local<v8::Context>, const String16& even tType, const String16& eventName, int id); 161 void didReceiveV8AsyncTaskEvent(v8::Local<v8::Context>, const String16& even tType, const String16& eventName, int id);
164 void willExecuteScript(int scriptId); 162 void willExecuteScript(int scriptId);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 #endif 242 #endif
245 protocol::Vector<OwnPtr<V8StackTraceImpl>> m_currentStacks; 243 protocol::Vector<OwnPtr<V8StackTraceImpl>> m_currentStacks;
246 OwnPtr<V8Regex> m_blackboxPattern; 244 OwnPtr<V8Regex> m_blackboxPattern;
247 protocol::HashMap<String16, protocol::Vector<std::pair<int, int>>> m_blackbo xedPositions; 245 protocol::HashMap<String16, protocol::Vector<std::pair<int, int>>> m_blackbo xedPositions;
248 }; 246 };
249 247
250 } // namespace blink 248 } // namespace blink
251 249
252 250
253 #endif // V8DebuggerAgentImpl_h 251 #endif // V8DebuggerAgentImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698