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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h

Issue 1702673002: DevTools: migrate remote debugging protocol generators to jinja2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h b/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h
index 64be15bee5829f5263184e5a74406f293586b8f8..814d33f7704cd4b216e314399902aecd4c76edf3 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.h
@@ -36,6 +36,9 @@
namespace blink {
+using namespace protocol;
+using protocol::TypeBuilder::Array;
+
class CORE_EXPORT InspectorDebuggerAgent
: public InspectorBaseAgent<InspectorDebuggerAgent, protocol::Frontend::Debugger>
, public protocol::Dispatcher::DebuggerCommandHandler {
@@ -46,39 +49,39 @@ public:
// protocol::Dispatcher::DebuggerCommandHandler implementation.
void enable(ErrorString*) override;
void disable(ErrorString*) override;
- void setBreakpointsActive(ErrorString*, bool inActive) override;
- void setSkipAllPauses(ErrorString*, bool inSkipped) override;
- void setBreakpointByUrl(ErrorString*, int inLineNumber, const String* inUrl, const String* inUrlRegex, const int* inColumnNumber, const String* inCondition, protocol::TypeBuilder::Debugger::BreakpointId* outBreakpointId, RefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::Location>>& outLocations) override;
- void setBreakpoint(ErrorString*, const RefPtr<JSONObject>& inLocation, const String* inCondition, protocol::TypeBuilder::Debugger::BreakpointId* outBreakpointId, RefPtr<protocol::TypeBuilder::Debugger::Location>& outActualLocation) override;
- void removeBreakpoint(ErrorString*, const String& inBreakpointId) override;
- void continueToLocation(ErrorString*, const RefPtr<JSONObject>& inLocation, const bool* inInterstatementLocation) override;
+ void setBreakpointsActive(ErrorString*, bool in_active) override;
+ void setSkipAllPauses(ErrorString*, bool in_skipped) override;
+ void setBreakpointByUrl(ErrorString*, int in_lineNumber, const protocol::TypeBuilder::OptionalValue<String>& in_url, const protocol::TypeBuilder::OptionalValue<String>& in_urlRegex, const protocol::TypeBuilder::OptionalValue<int>& in_columnNumber, const protocol::TypeBuilder::OptionalValue<String>& in_condition, String* out_breakpointId, OwnPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::Location>>* out_locations) override;
+ void setBreakpoint(ErrorString*, PassOwnPtr<protocol::TypeBuilder::Debugger::Location> in_location, const protocol::TypeBuilder::OptionalValue<String>& in_condition, String* out_breakpointId, OwnPtr<protocol::TypeBuilder::Debugger::Location>* out_actualLocation) override;
+ void removeBreakpoint(ErrorString*, const String& in_breakpointId) override;
+ void continueToLocation(ErrorString*, PassOwnPtr<protocol::TypeBuilder::Debugger::Location> in_location, const protocol::TypeBuilder::OptionalValue<bool>& in_interstatementLocation) override;
void stepOver(ErrorString*) override;
void stepInto(ErrorString*) override;
void stepOut(ErrorString*) override;
void pause(ErrorString*) override;
void resume(ErrorString*) override;
void stepIntoAsync(ErrorString*) override;
- void searchInContent(ErrorString*, const String& inScriptId, const String& inQuery, const bool* inCaseSensitive, const bool* inIsRegex, RefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::SearchMatch>>& outResult) override;
- void canSetScriptSource(ErrorString*, bool* outResult) override;
- void setScriptSource(ErrorString*, const String& inScriptId, const String& inScriptSource, const bool* inPreview, RefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::CallFrame>>& optOutCallFrames, protocol::TypeBuilder::OptOutput<bool>* optOutStackChanged, RefPtr<protocol::TypeBuilder::Debugger::StackTrace>& optOutAsyncStackTrace, RefPtr<protocol::TypeBuilder::Debugger::SetScriptSourceError>& optOutCompileError) override;
- void restartFrame(ErrorString*, const String& inCallFrameId, RefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::CallFrame>>& outCallFrames, RefPtr<protocol::TypeBuilder::Debugger::StackTrace>& optOutAsyncStackTrace) override;
- void getScriptSource(ErrorString*, const String& inScriptId, String* outScriptSource) override;
- void getFunctionDetails(ErrorString*, const String& inFunctionId, RefPtr<protocol::TypeBuilder::Debugger::FunctionDetails>& outDetails) override;
- void getGeneratorObjectDetails(ErrorString*, const String& inObjectId, RefPtr<protocol::TypeBuilder::Debugger::GeneratorObjectDetails>& outDetails) override;
- void getCollectionEntries(ErrorString*, const String& inObjectId, RefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::CollectionEntry>>& outEntries) override;
- void setPauseOnExceptions(ErrorString*, const String& inState) override;
- void evaluateOnCallFrame(ErrorString*, const String& inCallFrameId, const String& inExpression, const String* inObjectGroup, const bool* inIncludeCommandLineAPI, const bool* inDoNotPauseOnExceptionsAndMuteConsole, const bool* inReturnByValue, const bool* inGeneratePreview, RefPtr<protocol::TypeBuilder::Runtime::RemoteObject>& outResult, protocol::TypeBuilder::OptOutput<bool>* optOutWasThrown, RefPtr<protocol::TypeBuilder::Runtime::ExceptionDetails>& optOutExceptionDetails) override;
- void setVariableValue(ErrorString*, int inScopeNumber, const String& inVariableName, const RefPtr<JSONObject>& inNewValue, const String* inCallFrameId, const String* inFunctionObjectId) override;
- void getStepInPositions(ErrorString*, const String& inCallFrameId, RefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::Location>>& optOutStepInPositions) override;
- void getBacktrace(ErrorString*, RefPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::CallFrame>>& outCallFrames, RefPtr<protocol::TypeBuilder::Debugger::StackTrace>& optOutAsyncStackTrace) override;
- void setAsyncCallStackDepth(ErrorString*, int inMaxDepth) override;
- void enablePromiseTracker(ErrorString*, const bool* inCaptureStacks) override;
+ void searchInContent(ErrorString*, const String& in_scriptId, const String& in_query, const protocol::TypeBuilder::OptionalValue<bool>& in_caseSensitive, const protocol::TypeBuilder::OptionalValue<bool>& in_isRegex, OwnPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::SearchMatch>>* out_result) override;
+ void canSetScriptSource(ErrorString*, bool* out_result) override;
+ void setScriptSource(ErrorString*, const String& in_scriptId, const String& in_scriptSource, const protocol::TypeBuilder::OptionalValue<bool>& in_preview, OwnPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::CallFrame>>* out_callFrames, protocol::TypeBuilder::OptionalValue<bool>* out_stackChanged, OwnPtr<protocol::TypeBuilder::Debugger::StackTrace>* out_asyncStackTrace, OwnPtr<protocol::TypeBuilder::Debugger::SetScriptSourceError>* out_compileError) override;
+ void restartFrame(ErrorString*, const String& in_callFrameId, OwnPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::CallFrame>>* out_callFrames, OwnPtr<protocol::TypeBuilder::Debugger::StackTrace>* out_asyncStackTrace) override;
+ void getScriptSource(ErrorString*, const String& in_scriptId, String* out_scriptSource) override;
+ void getFunctionDetails(ErrorString*, const String& in_functionId, OwnPtr<protocol::TypeBuilder::Debugger::FunctionDetails>* out_details) override;
+ void getGeneratorObjectDetails(ErrorString*, const String& in_objectId, OwnPtr<protocol::TypeBuilder::Debugger::GeneratorObjectDetails>* out_details) override;
+ void getCollectionEntries(ErrorString*, const String& in_objectId, OwnPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::CollectionEntry>>* out_entries) override;
+ void setPauseOnExceptions(ErrorString*, const String& in_state) override;
+ void evaluateOnCallFrame(ErrorString*, const String& in_callFrameId, const String& in_expression, const protocol::TypeBuilder::OptionalValue<String>& in_objectGroup, const protocol::TypeBuilder::OptionalValue<bool>& in_includeCommandLineAPI, const protocol::TypeBuilder::OptionalValue<bool>& in_doNotPauseOnExceptionsAndMuteConsole, const protocol::TypeBuilder::OptionalValue<bool>& in_returnByValue, const protocol::TypeBuilder::OptionalValue<bool>& in_generatePreview, OwnPtr<protocol::TypeBuilder::Runtime::RemoteObject>* out_result, protocol::TypeBuilder::OptionalValue<bool>* out_wasThrown, OwnPtr<protocol::TypeBuilder::Runtime::ExceptionDetails>* out_exceptionDetails) override;
+ void setVariableValue(ErrorString*, int in_scopeNumber, const String& in_variableName, PassOwnPtr<protocol::TypeBuilder::Runtime::CallArgument> in_newValue, const protocol::TypeBuilder::OptionalValue<String>& in_callFrameId, const protocol::TypeBuilder::OptionalValue<String>& in_functionObjectId) override;
+ void getStepInPositions(ErrorString*, const String& in_callFrameId, OwnPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::Location>>* out_stepInPositions) override;
+ void getBacktrace(ErrorString*, OwnPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::CallFrame>>* out_callFrames, OwnPtr<protocol::TypeBuilder::Debugger::StackTrace>* out_asyncStackTrace) override;
+ void setAsyncCallStackDepth(ErrorString*, int in_maxDepth) override;
+ void enablePromiseTracker(ErrorString*, const protocol::TypeBuilder::OptionalValue<bool>& in_captureStacks) override;
void disablePromiseTracker(ErrorString*) override;
- void getPromiseById(ErrorString*, int inPromiseId, const String* inObjectGroup, RefPtr<protocol::TypeBuilder::Runtime::RemoteObject>& outPromise) override;
+ void getPromiseById(ErrorString*, int in_promiseId, const protocol::TypeBuilder::OptionalValue<String>& in_objectGroup, OwnPtr<protocol::TypeBuilder::Runtime::RemoteObject>* out_promise) override;
void flushAsyncOperationEvents(ErrorString*) override;
- void setAsyncOperationBreakpoint(ErrorString*, int inOperationId) override;
- void removeAsyncOperationBreakpoint(ErrorString*, int inOperationId) override;
- void setBlackboxedRanges(ErrorString*, const String& inScriptId, const RefPtr<JSONArray>& inPositions) override;
+ void setAsyncOperationBreakpoint(ErrorString*, int in_operationId) override;
+ void removeAsyncOperationBreakpoint(ErrorString*, int in_operationId) override;
+ void setBlackboxedRanges(ErrorString*, const String& in_scriptId, PassOwnPtr<protocol::TypeBuilder::Array<protocol::TypeBuilder::Debugger::ScriptPosition>> in_positions) override;
// Called by InspectorInstrumentation.
bool isPaused();

Powered by Google App Engine
This is Rietveld 408576698