Lines Matching refs:Response

98   Response response = injectedScript->wrapEvaluateResult(  in wrapEvaluateResultAsync()
127 Response response = scope.injectedScript()->resolveCallArgument( in innerCallFunctionOn()
154 Response response = scope.initialize(); in innerCallFunctionOn()
171 Response::Error("Given expression does not evaluate to a function")); in innerCallFunctionOn()
203 Response ensureContext(V8InspectorImpl* inspector, int contextGroupId, in ensureContext()
212 return Response::Error("Cannot find default execution context"); in ensureContext()
215 return Response::OK(); in ensureContext()
241 Response response = ensureContext(m_inspector, m_session->contextGroupId(), in evaluate()
305 Response response = scope.initialize(); in awaitPromise()
312 Response::Error("Could not find promise with given id")); in awaitPromise()
329 callback->sendFailure(Response::Error( in callFunctionOn()
334 callback->sendFailure(Response::Error( in callFunctionOn()
340 Response response = scope.initialize(); in callFunctionOn()
355 Response response = in callFunctionOn()
377 Response V8RuntimeAgentImpl::getProperties( in getProperties()
388 Response response = scope.initialize(); in getProperties()
395 return Response::Error("Value with given id is not an object"); in getProperties()
404 return Response::OK(); in getProperties()
409 return Response::InternalError(); in getProperties()
418 return Response::InternalError(); in getProperties()
422 return Response::InternalError(); in getProperties()
424 protocol::Response response = scope.injectedScript()->wrapObject( in getProperties()
436 return Response::OK(); in getProperties()
439 Response V8RuntimeAgentImpl::releaseObject(const String16& objectId) { in releaseObject()
441 Response response = scope.initialize(); in releaseObject()
444 return Response::OK(); in releaseObject()
447 Response V8RuntimeAgentImpl::releaseObjectGroup(const String16& objectGroup) { in releaseObjectGroup()
449 return Response::OK(); in releaseObjectGroup()
452 Response V8RuntimeAgentImpl::runIfWaitingForDebugger() { in runIfWaitingForDebugger()
454 return Response::OK(); in runIfWaitingForDebugger()
457 Response V8RuntimeAgentImpl::setCustomObjectFormatterEnabled(bool enabled) { in setCustomObjectFormatterEnabled()
460 if (!m_enabled) return Response::Error("Runtime agent is not enabled"); in setCustomObjectFormatterEnabled()
462 return Response::OK(); in setCustomObjectFormatterEnabled()
465 Response V8RuntimeAgentImpl::setMaxCallStackSizeToCapture(int size) { in setMaxCallStackSizeToCapture()
467 return Response::Error("maxCallStackSizeToCapture should be non-negative"); in setMaxCallStackSizeToCapture()
470 return Response::OK(); in setMaxCallStackSizeToCapture()
473 Response V8RuntimeAgentImpl::discardConsoleEntries() { in discardConsoleEntries()
477 return Response::OK(); in discardConsoleEntries()
480 Response V8RuntimeAgentImpl::compileScript( in compileScript()
484 if (!m_enabled) return Response::Error("Runtime agent is not enabled"); in compileScript()
487 Response response = ensureContext(m_inspector, m_session->contextGroupId(), in compileScript()
504 return Response::OK(); in compileScript()
506 return Response::Error("Script compilation failed"); in compileScript()
510 if (!persistScript) return Response::OK(); in compileScript()
518 return Response::OK(); in compileScript()
528 callback->sendFailure(Response::Error("Runtime agent is not enabled")); in runScript()
534 callback->sendFailure(Response::Error("No script with given id")); in runScript()
539 Response response = ensureContext(m_inspector, m_session->contextGroupId(), in runScript()
559 callback->sendFailure(Response::Error("Script execution failed")); in runScript()
594 Response V8RuntimeAgentImpl::queryObjects( in queryObjects()
598 Response response = scope.initialize(); in queryObjects()
601 return Response::Error("Prototype should be instance of Object"); in queryObjects()
610 Response V8RuntimeAgentImpl::globalLexicalScopeNames( in globalLexicalScopeNames()
614 Response response = ensureContext(m_inspector, m_session->contextGroupId(), in globalLexicalScopeNames()
629 return Response::OK(); in globalLexicalScopeNames()
632 Response V8RuntimeAgentImpl::getIsolateId(String16* outIsolateId) { in getIsolateId()
636 return Response::OK(); in getIsolateId()
639 Response V8RuntimeAgentImpl::getHeapUsage(double* out_usedSize, in getHeapUsage()
645 return Response::OK(); in getHeapUsage()
653 Response V8RuntimeAgentImpl::addBinding(const String16& name, in addBinding()
661 if (bindings->booleanProperty(name, false)) return Response::OK(); in addBinding()
667 return Response::Error( in addBinding()
673 return Response::OK(); in addBinding()
679 return Response::OK(); in addBinding()
723 Response V8RuntimeAgentImpl::removeBinding(const String16& name) { in removeBinding()
726 if (!bindings) return Response::OK(); in removeBinding()
728 return Response::OK(); in removeBinding()
765 Response V8RuntimeAgentImpl::enable() { in enable()
766 if (m_enabled) return Response::OK(); in enable()
778 return Response::OK(); in enable()
781 Response V8RuntimeAgentImpl::disable() { in disable()
782 if (!m_enabled) return Response::OK(); in disable()
794 return Response::OK(); in disable()