Home | History | Annotate | Download | only in inspector

Lines Matching refs:Response

78   void sendFailure(const protocol::DispatchResponse& response) override {
79 return m_callback->sendFailure(response);
98 Response response = injectedScript->wrapEvaluateResult(
101 if (response.isSuccess()) {
105 callback->sendFailure(response);
127 Response response = scope.injectedScript()->resolveCallArgument(
129 if (!response.isSuccess()) {
130 callback->sendFailure(response);
154 Response response = scope.initialize();
155 if (!response.isSuccess()) {
156 callback->sendFailure(response);
171 Response::Error("Given expression does not evaluate to a function"));
184 response = scope.initialize();
185 if (!response.isSuccess()) {
186 callback->sendFailure(response);
203 Response ensureContext(V8InspectorImpl* inspector, int contextGroupId,
212 return Response::Error("Cannot find default execution context");
215 return Response::OK();
241 Response response = ensureContext(m_inspector, m_session->contextGroupId(),
243 if (!response.isSuccess()) {
244 callback->sendFailure(response);
249 response = scope.initialize();
250 if (!response.isSuccess()) {
251 callback->sendFailure(response);
266 response = evaluateScope.setTimeout(timeout.fromJust() / 1000.0);
267 if (!response.isSuccess()) {
268 callback->sendFailure(response);
281 response = scope.initialize();
282 if (!response.isSuccess()) {
283 callback->sendFailure(response);
305 Response response = scope.initialize();
306 if (!response.isSuccess()) {
307 callback->sendFailure(response);
312 Response::Error("Could not find promise with given id"));
329 callback->sendFailure(Response::Error(
334 callback->sendFailure(Response::Error(
340 Response response = scope.initialize();
341 if (!response.isSuccess()) {
342 callback->sendFailure(response);
355 Response response =
358 if (!response.isSuccess()) {
359 callback->sendFailure(response);
363 response = scope.initialize();
364 if (!response.isSuccess()) {
365 callback->sendFailure(response);
377 Response V8RuntimeAgentImpl::getProperties(
388 Response response = scope.initialize();
389 if (!response.isSuccess()) return response;
395 return Response::Error("Value with given id is not an object");
398 response = scope.injectedScript()->getProperties(
402 if (!response.isSuccess()) return response;
404 return Response::OK();
409 return Response::InternalError();
418 return Response::InternalError();
422 return Response::InternalError();
424 protocol::Response response = scope.injectedScript()->wrapObject(
426 if (!response.isSuccess()) return response;
436 return Response::OK();
439 Response V8RuntimeAgentImpl::releaseObject(const String16& objectId) {
441 Response response = scope.initialize();
442 if (!response.isSuccess()) return response;
444 return Response::OK();
447 Response V8RuntimeAgentImpl::releaseObjectGroup(const String16& objectGroup) {
449 return Response::OK();
452 Response V8RuntimeAgentImpl::runIfWaitingForDebugger() {
454 return Response::OK();
457 Response V8RuntimeAgentImpl::setCustomObjectFormatterEnabled(bool enabled) {
460 if (!m_enabled) return Response::Error("Runtime agent is not enabled");
462 return Response::OK();
465 Response V8RuntimeAgentImpl::setMaxCallStackSizeToCapture(int size) {
467 return Response::Error("maxCallStackSizeToCapture should be non-negative");
470 return Response::OK();
473 Response V8RuntimeAgentImpl::discardConsoleEntries() {
477 return Response::OK();
480 Response V8RuntimeAgentImpl::compileScript(
484 if (!m_enabled) return Response::Error("Runtime agent is not enabled");
487 Response response = ensureContext(m_inspector, m_session->contextGroupId(),
489 if (!response.isSuccess()) return response;
491 response = scope.initialize();
492 if (!response.isSuccess()) return response;
501 response = scope.injectedScript()->createExceptionDetails(
503 if (!response.isSuccess()) return response;
504 return Response::OK();
506 return Response::Error("Script compilation failed");
510 if (!persistScript) return Response::OK();
518 return Response::OK();
528 callback->sendFailure(Response::Error("Runtime agent is not enabled"));
534 callback->sendFailure(Response::Error("No script with given id"));
539 Response response = ensureContext(m_inspector, m_session->contextGroupId(),
541 if (!response.isSuccess()) {
542 callback->sendFailure(response);
547 response = scope.initialize();
548 if (!response.isSuccess()) {
549 callback->sendFailure(response);
559 callback->sendFailure(Response::Error("Script execution failed"));
574 response = scope.initialize();
575 if (!response.isSuccess()) {
576 callback->sendFailure(response);
594 Response V8RuntimeAgentImpl::queryObjects(
598 Response response = scope.initialize();
599 if (!response.isSuccess()) return response;
601 return Response::Error("Prototype should be instance of Object");
610 Response V8RuntimeAgentImpl::globalLexicalScopeNames(
614 Response response = ensureContext(m_inspector, m_session->contextGroupId(),
616 if (!response.isSuccess()) return response;
619 response = scope.initialize();
620 if (!response.isSuccess()) return response;
629 return Response::OK();
632 Response V8RuntimeAgentImpl::getIsolateId(String16* outIsolateId) {
636 return Response::OK();
639 Response V8RuntimeAgentImpl::getHeapUsage(double* out_usedSize,
645 return Response::OK();
653 Response V8RuntimeAgentImpl::addBinding(const String16& name,
661 if (bindings->booleanProperty(name, false)) return Response::OK();
667 return Response::Error(
673 return Response::OK();
679 return Response::OK();
723 Response V8RuntimeAgentImpl::removeBinding(const String16& name) {
726 if (!bindings) return Response::OK();
728 return Response::OK();
765 Response V8RuntimeAgentImpl::enable() {
766 if (m_enabled) return Response::OK();
778 return Response::OK();
781 Response V8RuntimeAgentImpl::disable() {
782 if (!m_enabled) return Response::OK();
794 return Response::OK();