OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 , public protocol::Dispatcher::DebuggerCommandHandler { | 43 , public protocol::Dispatcher::DebuggerCommandHandler { |
44 public: | 44 public: |
45 ~InspectorDebuggerAgent() override; | 45 ~InspectorDebuggerAgent() override; |
46 DECLARE_VIRTUAL_TRACE(); | 46 DECLARE_VIRTUAL_TRACE(); |
47 | 47 |
48 // protocol::Dispatcher::DebuggerCommandHandler implementation. | 48 // protocol::Dispatcher::DebuggerCommandHandler implementation. |
49 void enable(ErrorString*) override; | 49 void enable(ErrorString*) override; |
50 void disable(ErrorString*) override; | 50 void disable(ErrorString*) override; |
51 void setBreakpointsActive(ErrorString*, bool active) override; | 51 void setBreakpointsActive(ErrorString*, bool active) override; |
52 void setSkipAllPauses(ErrorString*, bool skipped) override; | 52 void setSkipAllPauses(ErrorString*, bool skipped) override; |
53 void setBreakpointByUrl(ErrorString*, int lineNumber, const Maybe<String>& u
rl, const Maybe<String>& urlRegex, const Maybe<int>& columnNumber, const Maybe<S
tring>& condition, String* breakpointId, OwnPtr<protocol::Array<protocol::Debugg
er::Location>>* locations) override; | 53 void setBreakpointByUrl(ErrorString*, int lineNumber, const Maybe<String16>&
url, const Maybe<String16>& urlRegex, const Maybe<int>& columnNumber, const May
be<String16>& condition, protocol::Debugger::BreakpointId*, OwnPtr<protocol::Arr
ay<protocol::Debugger::Location>>* locations) override; |
54 void setBreakpoint(ErrorString*, PassOwnPtr<protocol::Debugger::Location>, c
onst Maybe<String>& condition, String* breakpointId, OwnPtr<protocol::Debugger::
Location>* actualLocation) override; | 54 void setBreakpoint(ErrorString*, PassOwnPtr<protocol::Debugger::Location>, c
onst Maybe<String16>& condition, protocol::Debugger::BreakpointId*, OwnPtr<proto
col::Debugger::Location>* actualLocation) override; |
55 void removeBreakpoint(ErrorString*, const String& breakpointId) override; | 55 void removeBreakpoint(ErrorString*, const protocol::Debugger::BreakpointId&)
override; |
56 void continueToLocation(ErrorString*, PassOwnPtr<protocol::Debugger::Locatio
n>, const Maybe<bool>& interstatementLocation) override; | 56 void continueToLocation(ErrorString*, PassOwnPtr<protocol::Debugger::Locatio
n>, const Maybe<bool>& interstatementLocation) override; |
57 void stepOver(ErrorString*) override; | 57 void stepOver(ErrorString*) override; |
58 void stepInto(ErrorString*) override; | 58 void stepInto(ErrorString*) override; |
59 void stepOut(ErrorString*) override; | 59 void stepOut(ErrorString*) override; |
60 void pause(ErrorString*) override; | 60 void pause(ErrorString*) override; |
61 void resume(ErrorString*) override; | 61 void resume(ErrorString*) override; |
62 void stepIntoAsync(ErrorString*) override; | 62 void stepIntoAsync(ErrorString*) override; |
63 void searchInContent(ErrorString*, const String& scriptId, const String& que
ry, const Maybe<bool>& caseSensitive, const Maybe<bool>& isRegex, OwnPtr<protoco
l::Array<protocol::Debugger::SearchMatch>>* result) override; | 63 void searchInContent(ErrorString*, const String16& scriptId, const String16&
query, const Maybe<bool>& caseSensitive, const Maybe<bool>& isRegex, OwnPtr<pro
tocol::Array<protocol::Debugger::SearchMatch>>* result) override; |
64 void canSetScriptSource(ErrorString*, bool* result) override; | 64 void canSetScriptSource(ErrorString*, bool* result) override; |
65 void setScriptSource(ErrorString*, const String& scriptId, const String& scr
iptSource, const Maybe<bool>& preview, Maybe<protocol::Array<protocol::Debugger:
:CallFrame>>* callFrames, Maybe<bool>* stackChanged, Maybe<protocol::Runtime::St
ackTrace>* asyncStackTrace, Maybe<protocol::Debugger::SetScriptSourceError>* com
pileError) override; | 65 void setScriptSource(ErrorString*, const String16& scriptId, const String16&
scriptSource, const Maybe<bool>& preview, Maybe<protocol::Array<protocol::Debug
ger::CallFrame>>* callFrames, Maybe<bool>* stackChanged, Maybe<protocol::Runtime
::StackTrace>* asyncStackTrace, Maybe<protocol::Debugger::SetScriptSourceError>*
compileError) override; |
66 void restartFrame(ErrorString*, const String& callFrameId, OwnPtr<protocol::
Array<protocol::Debugger::CallFrame>>* callFrames, Maybe<protocol::Runtime::Stac
kTrace>* asyncStackTrace) override; | 66 void restartFrame(ErrorString*, const String16& callFrameId, OwnPtr<protocol
::Array<protocol::Debugger::CallFrame>>* callFrames, Maybe<protocol::Runtime::St
ackTrace>* asyncStackTrace) override; |
67 void getScriptSource(ErrorString*, const String& scriptId, String* scriptSou
rce) override; | 67 void getScriptSource(ErrorString*, const String16& scriptId, String16* scrip
tSource) override; |
68 void getFunctionDetails(ErrorString*, const String& functionId, OwnPtr<proto
col::Debugger::FunctionDetails>*) override; | 68 void getFunctionDetails(ErrorString*, const String16& functionId, OwnPtr<pro
tocol::Debugger::FunctionDetails>*) override; |
69 void getGeneratorObjectDetails(ErrorString*, const String& objectId, OwnPtr<
protocol::Debugger::GeneratorObjectDetails>*) override; | 69 void getGeneratorObjectDetails(ErrorString*, const String16& objectId, OwnPt
r<protocol::Debugger::GeneratorObjectDetails>*) override; |
70 void getCollectionEntries(ErrorString*, const String& objectId, OwnPtr<proto
col::Array<protocol::Debugger::CollectionEntry>>* entries) override; | 70 void getCollectionEntries(ErrorString*, const String16& objectId, OwnPtr<pro
tocol::Array<protocol::Debugger::CollectionEntry>>* entries) override; |
71 void setPauseOnExceptions(ErrorString*, const String& state) override; | 71 void setPauseOnExceptions(ErrorString*, const String16& state) override; |
72 void evaluateOnCallFrame(ErrorString*, const String& callFrameId, const Stri
ng& expression, const Maybe<String>& objectGroup, const Maybe<bool>& includeComm
andLineAPI, const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole, const Maybe
<bool>& returnByValue, const Maybe<bool>& generatePreview, OwnPtr<protocol::Runt
ime::RemoteObject>* result, Maybe<bool>* wasThrown, Maybe<protocol::Runtime::Exc
eptionDetails>*) override; | 72 void evaluateOnCallFrame(ErrorString*, const String16& callFrameId, const St
ring16& expression, const Maybe<String16>& objectGroup, const Maybe<bool>& inclu
deCommandLineAPI, const Maybe<bool>& doNotPauseOnExceptionsAndMuteConsole, const
Maybe<bool>& returnByValue, const Maybe<bool>& generatePreview, OwnPtr<protocol
::Runtime::RemoteObject>* result, Maybe<bool>* wasThrown, Maybe<protocol::Runtim
e::ExceptionDetails>*) override; |
73 void setVariableValue(ErrorString*, int scopeNumber, const String& variableN
ame, PassOwnPtr<protocol::Runtime::CallArgument> newValue, const Maybe<String>&
callFrameId, const Maybe<String>& functionObjectId) override; | 73 void setVariableValue(ErrorString*, int scopeNumber, const String16& variabl
eName, PassOwnPtr<protocol::Runtime::CallArgument> newValue, const Maybe<String1
6>& callFrameId, const Maybe<String16>& functionObjectId) override; |
74 void getStepInPositions(ErrorString*, const String& callFrameId, Maybe<proto
col::Array<protocol::Debugger::Location>>* stepInPositions) override; | 74 void getStepInPositions(ErrorString*, const String16& callFrameId, Maybe<pro
tocol::Array<protocol::Debugger::Location>>* stepInPositions) override; |
75 void getBacktrace(ErrorString*, OwnPtr<protocol::Array<protocol::Debugger::C
allFrame>>* callFrames, Maybe<protocol::Runtime::StackTrace>* asyncStackTrace) o
verride; | 75 void getBacktrace(ErrorString*, OwnPtr<protocol::Array<protocol::Debugger::C
allFrame>>* callFrames, Maybe<protocol::Runtime::StackTrace>* asyncStackTrace) o
verride; |
76 void setAsyncCallStackDepth(ErrorString*, int maxDepth) override; | 76 void setAsyncCallStackDepth(ErrorString*, int maxDepth) override; |
77 void enablePromiseTracker(ErrorString*, const Maybe<bool>& captureStacks) ov
erride; | 77 void enablePromiseTracker(ErrorString*, const Maybe<bool>& captureStacks) ov
erride; |
78 void disablePromiseTracker(ErrorString*) override; | 78 void disablePromiseTracker(ErrorString*) override; |
79 void getPromiseById(ErrorString*, int promiseId, const Maybe<String>& object
Group, OwnPtr<protocol::Runtime::RemoteObject>* promise) override; | 79 void getPromiseById(ErrorString*, int promiseId, const Maybe<String16>& obje
ctGroup, OwnPtr<protocol::Runtime::RemoteObject>* promise) override; |
80 void flushAsyncOperationEvents(ErrorString*) override; | 80 void flushAsyncOperationEvents(ErrorString*) override; |
81 void setAsyncOperationBreakpoint(ErrorString*, int operationId) override; | 81 void setAsyncOperationBreakpoint(ErrorString*, int operationId) override; |
82 void removeAsyncOperationBreakpoint(ErrorString*, int operationId) override; | 82 void removeAsyncOperationBreakpoint(ErrorString*, int operationId) override; |
83 void setBlackboxedRanges(ErrorString*, const String& scriptId, PassOwnPtr<pr
otocol::Array<protocol::Debugger::ScriptPosition>> positions) override; | 83 void setBlackboxedRanges(ErrorString*, const String16& scriptId, PassOwnPtr<
protocol::Array<protocol::Debugger::ScriptPosition>> positions) override; |
84 | 84 |
85 // Called by InspectorInstrumentation. | 85 // Called by InspectorInstrumentation. |
86 bool isPaused(); | 86 bool isPaused(); |
87 void scriptExecutionBlockedByCSP(const String& directiveText); | 87 void scriptExecutionBlockedByCSP(const String& directiveText); |
88 void willExecuteScript(int scriptId); | 88 void willExecuteScript(int scriptId); |
89 void didExecuteScript(); | 89 void didExecuteScript(); |
90 | 90 |
91 // InspectorBaseAgent overrides. | 91 // InspectorBaseAgent overrides. |
92 void setState(protocol::DictionaryValue*) override; | 92 void setState(protocol::DictionaryValue*) override; |
93 void init() override; | 93 void init() override; |
(...skipping 15 matching lines...) Expand all Loading... |
109 | 109 |
110 private: | 110 private: |
111 void setTrackingAsyncCalls(bool); | 111 void setTrackingAsyncCalls(bool); |
112 V8Debugger* m_debugger; | 112 V8Debugger* m_debugger; |
113 }; | 113 }; |
114 | 114 |
115 } // namespace blink | 115 } // namespace blink |
116 | 116 |
117 | 117 |
118 #endif // !defined(InspectorDebuggerAgent_h) | 118 #endif // !defined(InspectorDebuggerAgent_h) |
OLD | NEW |