Lines Matching refs:Response
73 callback->sendFailure(Response::InternalError()); in add()
77 callback->sendFailure(Response::InternalError()); in add()
92 callback->sendFailure(Response::InternalError()); in add()
100 callback->sendFailure(Response::InternalError()); in add()
164 Response response = scope.initialize(); in thenCallback()
189 Response response = scope.initialize(); in catchCallback()
242 Response response = scope.initialize(); in sendPromiseCollected()
247 callback->sendFailure(Response::Error("Promise was collected")); in sendPromiseCollected()
331 Response InjectedScript::getProperties( in getProperties()
349 Response response = createExceptionDetails( in getProperties()
354 return Response::OK(); in getProperties()
356 if (resultValue.IsEmpty()) return Response::InternalError(); in getProperties()
358 Response response = toProtocolValue(context, resultValue, &protocolValue); in getProperties()
363 if (errors.hasErrors()) return Response::Error(errors.errors()); in getProperties()
365 return Response::OK(); in getProperties()
380 Response InjectedScript::wrapObject( in wrapObject()
387 Response response = wrapValue(value, groupName, forceValueType, in wrapObject()
397 if (!result->get()) return Response::Error(errors.errors()); in wrapObject()
398 return Response::OK(); in wrapObject()
401 Response InjectedScript::wrapValue(v8::Local<v8::Value> value, in wrapValue()
413 if (hadException || result->IsEmpty()) return Response::InternalError(); in wrapValue()
414 return Response::OK(); in wrapValue()
432 Response response = toProtocolValue(context, r, &protocolValue); in wrapTable()
444 callback->sendFailure(Response::InternalError()); in addPromiseCallback()
459 callback->sendFailure(Response::Error("Execution context was destroyed.")); in discardEvaluateCallbacks()
474 Response InjectedScript::findObject(const RemoteObjectId& objectId, in findObject()
478 return Response::Error("Could not find object with given id"); in findObject()
480 return Response::OK(); in findObject()
523 Response InjectedScript::resolveCallArgument( in resolveCallArgument()
528 Response response = in resolveCallArgument()
532 return Response::Error( in resolveCallArgument()
553 return Response::Error("Couldn't parse value object in call argument"); in resolveCallArgument()
555 return Response::OK(); in resolveCallArgument()
558 return Response::OK(); in resolveCallArgument()
561 Response InjectedScript::createExceptionDetails( in createExceptionDetails()
564 if (!tryCatch.HasCaught()) return Response::InternalError(); in createExceptionDetails()
598 Response response = in createExceptionDetails()
605 return Response::OK(); in createExceptionDetails()
608 Response InjectedScript::wrapEvaluateResult( in wrapEvaluateResult()
616 return Response::InternalError(); in wrapEvaluateResult()
617 Response response = wrapObject(resultValue, objectGroup, returnByValue, in wrapEvaluateResult()
626 return Response::Error("Execution was terminated"); in wrapEvaluateResult()
629 Response response = in wrapEvaluateResult()
639 return Response::OK(); in wrapEvaluateResult()
665 Response InjectedScript::Scope::initialize() { in initialize()
669 if (!session) return Response::InternalError(); in initialize()
670 Response response = findInjectedScript(session); in initialize()
675 return Response::OK(); in initialize()
743 Response InjectedScript::ContextScope::findInjectedScript( in findInjectedScript()
754 Response InjectedScript::ObjectScope::findInjectedScript( in findInjectedScript()
757 Response response = RemoteObjectId::parse(m_remoteObjectId, &remoteId); in findInjectedScript()
766 return Response::OK(); in findInjectedScript()
775 Response InjectedScript::CallFrameScope::findInjectedScript( in findInjectedScript()
778 Response response = RemoteCallFrameId::parse(m_remoteCallFrameId, &remoteId); in findInjectedScript()