Lines Matching refs:Response

253 Response buildScopes(v8::Isolate* isolate, v8::debug::ScopeIterator* iterator,  in buildScopes()
257 if (!injectedScript) return Response::OK(); in buildScopes()
258 if (iterator->Done()) return Response::OK(); in buildScopes()
264 Response result = injectedScript->wrapObject( in buildScopes()
294 return Response::OK(); in buildScopes()
341 Response V8DebuggerAgentImpl::enable(String16* outDebuggerId) { in enable()
344 if (enabled()) return Response::OK(); in enable()
347 return Response::Error("Script execution is prohibited"); in enable()
350 return Response::OK(); in enable()
353 Response V8DebuggerAgentImpl::disable() { in disable()
354 if (!enabled()) return Response::OK(); in disable()
386 return Response::OK(); in disable()
417 Response V8DebuggerAgentImpl::setBreakpointsActive(bool active) { in setBreakpointsActive()
418 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in setBreakpointsActive()
419 if (m_breakpointsActive == active) return Response::OK(); in setBreakpointsActive()
426 return Response::OK(); in setBreakpointsActive()
429 Response V8DebuggerAgentImpl::setSkipAllPauses(bool skip) { in setSkipAllPauses()
432 return Response::OK(); in setSkipAllPauses()
452 Response V8DebuggerAgentImpl::setBreakpointByUrl( in setBreakpointByUrl()
464 return Response::Error( in setBreakpointByUrl()
470 if (columnNumber < 0) return Response::Error("Incorrect column number"); in setBreakpointByUrl()
511 return Response::Error("Breakpoint at specified location already exists."); in setBreakpointByUrl()
535 return Response::OK(); in setBreakpointByUrl()
538 Response V8DebuggerAgentImpl::setBreakpoint( in setBreakpoint()
547 return Response::Error("Breakpoint at specified location already exists."); in setBreakpoint()
553 if (!*actualLocation) return Response::Error("Could not resolve breakpoint"); in setBreakpoint()
555 return Response::OK(); in setBreakpoint()
558 Response V8DebuggerAgentImpl::setBreakpointOnFunctionCall( in setBreakpointOnFunctionCall()
562 Response response = scope.initialize(); in setBreakpointOnFunctionCall()
565 return Response::Error("Could not find function with given id"); in setBreakpointOnFunctionCall()
573 return Response::Error("Breakpoint at specified location already exists."); in setBreakpointOnFunctionCall()
579 return Response::OK(); in setBreakpointOnFunctionCall()
582 Response V8DebuggerAgentImpl::removeBreakpoint(const String16& breakpointId) { in removeBreakpoint()
583 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in removeBreakpoint()
587 return Response::OK(); in removeBreakpoint()
616 return Response::OK(); in removeBreakpoint()
635 Response V8DebuggerAgentImpl::getPossibleBreakpoints( in getPossibleBreakpoints()
643 return Response::Error( in getPossibleBreakpoints()
651 return Response::Error("Locations should contain the same scriptId"); in getPossibleBreakpoints()
655 return Response::Error( in getPossibleBreakpoints()
660 if (it == m_scripts.end()) return Response::Error("Script not found"); in getPossibleBreakpoints()
667 return Response::Error("Cannot retrive script context"); in getPossibleBreakpoints()
690 return Response::OK(); in getPossibleBreakpoints()
693 Response V8DebuggerAgentImpl::continueToLocation( in continueToLocation()
696 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in continueToLocation()
697 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in continueToLocation()
700 return Response::Error("Cannot continue to specified location"); in continueToLocation()
706 return Response::Error("Cannot continue to specified location"); in continueToLocation()
714 Response V8DebuggerAgentImpl::getStackTrace( in getStackTrace()
728 return Response::Error("Invalid stack trace id"); in getStackTrace()
733 return Response::Error("Stack trace with given id is not found"); in getStackTrace()
737 return Response::OK(); in getStackTrace()
830 Response V8DebuggerAgentImpl::searchInContent( in searchInContent()
837 return Response::Error("No script for id: " + scriptId); in searchInContent()
846 return Response::OK(); in searchInContent()
849 Response V8DebuggerAgentImpl::setScriptSource( in setScriptSource()
856 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in setScriptSource()
860 return Response::Error("No script with given id found"); in setScriptSource()
864 return Response::Error("Editing module's script is not supported."); in setScriptSource()
869 return Response::InternalError(); in setScriptSource()
887 return Response::OK(); in setScriptSource()
892 Response response = currentCallFrames(&callFrames); in setScriptSource()
897 return Response::OK(); in setScriptSource()
900 Response V8DebuggerAgentImpl::restartFrame( in restartFrame()
905 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in restartFrame()
907 Response response = scope.initialize(); in restartFrame()
912 return Response::Error("Could not find call frame with given id"); in restartFrame()
915 return Response::InternalError(); in restartFrame()
921 return Response::OK(); in restartFrame()
924 Response V8DebuggerAgentImpl::getScriptSource(const String16& scriptId, in getScriptSource()
926 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in getScriptSource()
929 return Response::Error("No script for id: " + scriptId); in getScriptSource()
931 return Response::OK(); in getScriptSource()
968 Response V8DebuggerAgentImpl::pause() { in pause()
969 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in pause()
970 if (isPaused()) return Response::OK(); in pause()
979 return Response::OK(); in pause()
982 Response V8DebuggerAgentImpl::resume() { in resume()
983 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in resume()
986 return Response::OK(); in resume()
989 Response V8DebuggerAgentImpl::stepOver() { in stepOver()
990 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in stepOver()
993 return Response::OK(); in stepOver()
996 Response V8DebuggerAgentImpl::stepInto(Maybe<bool> inBreakOnAsyncCall) { in stepInto()
997 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in stepInto()
1001 return Response::OK(); in stepInto()
1004 Response V8DebuggerAgentImpl::stepOut() { in stepOut()
1005 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in stepOut()
1008 return Response::OK(); in stepOut()
1014 callback->sendFailure(Response::Error(kDebuggerNotPaused)); in scheduleStepIntoAsync()
1021 Response V8DebuggerAgentImpl::pauseOnAsyncCall( in pauseOnAsyncCall()
1026 return Response::Error("Invalid stack trace id"); in pauseOnAsyncCall()
1030 return Response::OK(); in pauseOnAsyncCall()
1033 Response V8DebuggerAgentImpl::setPauseOnExceptions( in setPauseOnExceptions()
1035 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in setPauseOnExceptions()
1044 return Response::Error("Unknown pause on exceptions mode: " + in setPauseOnExceptions()
1048 return Response::OK(); in setPauseOnExceptions()
1059 Response V8DebuggerAgentImpl::evaluateOnCallFrame( in evaluateOnCallFrame()
1066 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in evaluateOnCallFrame()
1068 Response response = scope.initialize(); in evaluateOnCallFrame()
1076 return Response::Error("Could not find call frame with given id"); in evaluateOnCallFrame()
1099 Response V8DebuggerAgentImpl::setVariableValue( in setVariableValue()
1103 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in setVariableValue()
1104 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in setVariableValue()
1106 Response response = scope.initialize(); in setVariableValue()
1116 return Response::Error("Could not find call frame with given id"); in setVariableValue()
1124 return Response::Error("Could not find scope with given number"); in setVariableValue()
1130 return Response::InternalError(); in setVariableValue()
1132 return Response::OK(); in setVariableValue()
1135 Response V8DebuggerAgentImpl::setReturnValue( in setReturnValue()
1137 if (!enabled()) return Response::Error(kDebuggerNotEnabled); in setReturnValue()
1138 if (!isPaused()) return Response::Error(kDebuggerNotPaused); in setReturnValue()
1141 return Response::Error("Could not find top call frame"); in setReturnValue()
1144 return Response::Error( in setReturnValue()
1148 Response response = scope.initialize(); in setReturnValue()
1155 return Response::OK(); in setReturnValue()
1158 Response V8DebuggerAgentImpl::setAsyncCallStackDepth(int depth) { in setAsyncCallStackDepth()
1160 return Response::Error(kDebuggerNotEnabled); in setAsyncCallStackDepth()
1164 return Response::OK(); in setAsyncCallStackDepth()
1167 Response V8DebuggerAgentImpl::setBlackboxPatterns( in setBlackboxPatterns()
1173 return Response::OK(); in setBlackboxPatterns()
1185 Response response = setBlackboxPattern(pattern); in setBlackboxPatterns()
1189 return Response::OK(); in setBlackboxPatterns()
1192 Response V8DebuggerAgentImpl::setBlackboxPattern(const String16& pattern) { in setBlackboxPattern()
1196 return Response::Error("Pattern parser error: " + regex->errorMessage()); in setBlackboxPattern()
1198 return Response::OK(); in setBlackboxPattern()
1207 Response V8DebuggerAgentImpl::setBlackboxedRanges( in setBlackboxedRanges()
1213 return Response::Error("No script with passed id."); in setBlackboxedRanges()
1218 return Response::OK(); in setBlackboxedRanges()
1226 return Response::Error("Position missing 'line' or 'line' < 0."); in setBlackboxedRanges()
1228 return Response::Error("Position missing 'column' or 'column' < 0."); in setBlackboxedRanges()
1238 return Response::Error( in setBlackboxedRanges()
1244 return Response::OK(); in setBlackboxedRanges()
1247 Response V8DebuggerAgentImpl::currentCallFrames( in currentCallFrames()
1251 return Response::OK(); in currentCallFrames()
1268 Response res = in currentCallFrames()
1334 return Response::OK(); in currentCallFrames()
1592 Response response = currentCallFrames(&protocolCallFrames); in didPause()