Lines Matching refs:Response
70 callback->sendFailure(Response::InternalError());
74 callback->sendFailure(Response::Error(notPromiseError));
92 rawCallback->sendFailure(Response::InternalError());
100 rawCallback->sendFailure(Response::InternalError());
179 Response::Error("Promise was collected"));
188 Response response = scope.initialize();
189 if (!response.isSuccess()) {
190 m_callback->sendFailure(response);
194 response = scope.injectedScript()->wrapObject(
197 if (!response.isSuccess()) {
198 m_callback->sendFailure(response);
223 Response response = injectedScript->wrapEvaluateResult(
226 if (response.isSuccess()) {
230 callback->sendFailure(response);
234 Response ensureContext(V8InspectorImpl* inspector, int contextGroupId,
243 return Response::Error("Cannot find default execution context");
246 return Response::OK();
271 Response response = ensureContext(m_inspector, m_session->contextGroupId(),
273 if (!response.isSuccess()) {
274 callback->sendFailure(response);
280 response = scope.initialize();
281 if (!response.isSuccess()) {
282 callback->sendFailure(response);
306 response = scope.initialize();
307 if (!response.isSuccess()) {
308 callback->sendFailure(response);
333 Response response = scope.initialize();
334 if (!response.isSuccess()) {
335 callback->sendFailure(response);
354 Response response = scope.initialize();
355 if (!response.isSuccess()) {
356 callback->sendFailure(response);
369 response = scope.injectedScript()->resolveCallArgument(arguments->get(i),
371 if (!response.isSuccess()) {
372 callback->sendFailure(response);
388 response = scope.initialize();
389 if (!response.isSuccess()) {
390 callback->sendFailure(response);
405 Response::Error("Given expression does not evaluate to a function"));
414 response = scope.initialize();
415 if (!response.isSuccess()) {
416 callback->sendFailure(response);
437 Response V8RuntimeAgentImpl::getProperties(
449 Response response = scope.initialize();
450 if (!response.isSuccess()) return response;
454 return Response::Error("Value with given id is not an object");
457 response = scope.injectedScript()->getProperties(
461 if (!response.isSuccess()) return response;
463 return Response::OK();
468 return Response::InternalError();
477 return Response::InternalError();
481 return Response::InternalError();
483 protocol::Response response = scope.injectedScript()->wrapObject(
485 if (!response.isSuccess()) return response;
494 return Response::OK();
497 Response V8RuntimeAgentImpl::releaseObject(const String16& objectId) {
500 Response response = scope.initialize();
501 if (!response.isSuccess()) return response;
503 return Response::OK();
506 Response V8RuntimeAgentImpl::releaseObjectGroup(const String16& objectGroup) {
508 return Response::OK();
511 Response V8RuntimeAgentImpl::runIfWaitingForDebugger() {
513 return Response::OK();
516 Response V8RuntimeAgentImpl::setCustomObjectFormatterEnabled(bool enabled) {
520 return Response::OK();
523 Response V8RuntimeAgentImpl::discardConsoleEntries() {
527 return Response::OK();
530 Response V8RuntimeAgentImpl::compileScript(
534 if (!m_enabled) return Response::Error("Runtime agent is not enabled");
537 Response response = ensureContext(m_inspector, m_session->contextGroupId(),
539 if (!response.isSuccess()) return response;
542 response = scope.initialize();
543 if (!response.isSuccess()) return response;
552 response = scope.injectedScript()->createExceptionDetails(
554 if (!response.isSuccess()) return response;
555 return Response::OK();
557 return Response::Error("Script compilation failed");
561 if (!persistScript) return Response::OK();
569 return Response::OK();
579 callback->sendFailure(Response::Error("Runtime agent is not enabled"));
585 callback->sendFailure(Response::Error("No script with given id"));
590 Response response = ensureContext(m_inspector, m_session->contextGroupId(),
592 if (!response.isSuccess()) {
593 callback->sendFailure(response);
599 response = scope.initialize();
600 if (!response.isSuccess()) {
601 callback->sendFailure(response);
611 callback->sendFailure(Response::Error("Script execution failed"));
622 response = scope.initialize();
623 if (!response.isSuccess()) {
624 callback->sendFailure(response);
654 Response V8RuntimeAgentImpl::enable() {
655 if (m_enabled) return Response::OK();
667 return Response::OK();
670 Response V8RuntimeAgentImpl::disable() {
671 if (!m_enabled) return Response::OK();
679 return Response::OK();