Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/url_loader_interceptor.mojom.dart

Issue 1983453002: Dart: Refactor Stubs (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 library url_loader_interceptor_mojom; 5 library url_loader_interceptor_mojom;
6 import 'dart:async'; 6 import 'dart:async';
7 import 'package:mojo/bindings.dart' as bindings; 7 import 'package:mojo/bindings.dart' as bindings;
8 import 'package:mojo/core.dart' as core; 8 import 'package:mojo/core.dart' as core;
9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer; 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer;
10 import 'package:mojo/mojo/url_request.mojom.dart' as url_request_mojom; 10 import 'package:mojo/mojo/url_request.mojom.dart' as url_request_mojom;
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 597
598 dynamic getAllTypeDefinitions([Function responseFactory]) => 598 dynamic getAllTypeDefinitions([Function responseFactory]) =>
599 responseFactory(null); 599 responseFactory(null);
600 } 600 }
601 601
602 abstract class UrlLoaderInterceptorFactory { 602 abstract class UrlLoaderInterceptorFactory {
603 static const String serviceName = null; 603 static const String serviceName = null;
604 void create(Object interceptor); 604 void create(Object interceptor);
605 } 605 }
606 606
607 607 class _UrlLoaderInterceptorFactoryProxyControl
608 class _UrlLoaderInterceptorFactoryProxyControl extends bindings.ProxyMessageHand ler 608 extends bindings.ProxyMessageHandler
609 implements bindings.ProxyControl { 609 implements bindings.ProxyControl {
610 _UrlLoaderInterceptorFactoryProxyControl.fromEndpoint( 610 _UrlLoaderInterceptorFactoryProxyControl.fromEndpoint(
611 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 611 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
612 612
613 _UrlLoaderInterceptorFactoryProxyControl.fromHandle( 613 _UrlLoaderInterceptorFactoryProxyControl.fromHandle(
614 core.MojoHandle handle) : super.fromHandle(handle); 614 core.MojoHandle handle) : super.fromHandle(handle);
615 615
616 _UrlLoaderInterceptorFactoryProxyControl.unbound() : super.unbound(); 616 _UrlLoaderInterceptorFactoryProxyControl.unbound() : super.unbound();
617 617
618 service_describer.ServiceDescription get serviceDescription => 618 service_describer.ServiceDescription get serviceDescription =>
619 new _UrlLoaderInterceptorFactoryServiceDescription(); 619 new _UrlLoaderInterceptorFactoryServiceDescription();
620 620
621 String get serviceName => UrlLoaderInterceptorFactory.serviceName; 621 String get serviceName => UrlLoaderInterceptorFactory.serviceName;
622 622
623 @override
624 void handleResponse(bindings.ServiceMessage message) { 623 void handleResponse(bindings.ServiceMessage message) {
625 switch (message.header.type) { 624 switch (message.header.type) {
626 default: 625 default:
627 proxyError("Unexpected message type: ${message.header.type}"); 626 proxyError("Unexpected message type: ${message.header.type}");
628 close(immediate: true); 627 close(immediate: true);
629 break; 628 break;
630 } 629 }
631 } 630 }
632 631
633 @override 632 @override
634 String toString() { 633 String toString() {
635 var superString = super.toString(); 634 var superString = super.toString();
636 return "_UrlLoaderInterceptorFactoryProxyControl($superString)"; 635 return "_UrlLoaderInterceptorFactoryProxyControl($superString)";
637 } 636 }
638 } 637 }
639 638
640 639 class UrlLoaderInterceptorFactoryProxy
641 class UrlLoaderInterceptorFactoryProxy extends bindings.Proxy 640 extends bindings.Proxy
642 implements UrlLoaderInterceptorFactory { 641 implements UrlLoaderInterceptorFactory {
643 UrlLoaderInterceptorFactoryProxy.fromEndpoint( 642 UrlLoaderInterceptorFactoryProxy.fromEndpoint(
644 core.MojoMessagePipeEndpoint endpoint) 643 core.MojoMessagePipeEndpoint endpoint)
645 : super(new _UrlLoaderInterceptorFactoryProxyControl.fromEndpoint(endpoint )); 644 : super(new _UrlLoaderInterceptorFactoryProxyControl.fromEndpoint(endpoint ));
646 645
647 UrlLoaderInterceptorFactoryProxy.fromHandle(core.MojoHandle handle) 646 UrlLoaderInterceptorFactoryProxy.fromHandle(core.MojoHandle handle)
648 : super(new _UrlLoaderInterceptorFactoryProxyControl.fromHandle(handle)); 647 : super(new _UrlLoaderInterceptorFactoryProxyControl.fromHandle(handle));
649 648
650 UrlLoaderInterceptorFactoryProxy.unbound() 649 UrlLoaderInterceptorFactoryProxy.unbound()
651 : super(new _UrlLoaderInterceptorFactoryProxyControl.unbound()); 650 : super(new _UrlLoaderInterceptorFactoryProxyControl.unbound());
652 651
(...skipping 16 matching lines...) Expand all
669 ctrl.proxyError("The Proxy is closed."); 668 ctrl.proxyError("The Proxy is closed.");
670 return; 669 return;
671 } 670 }
672 var params = new _UrlLoaderInterceptorFactoryCreateParams(); 671 var params = new _UrlLoaderInterceptorFactoryCreateParams();
673 params.interceptor = interceptor; 672 params.interceptor = interceptor;
674 ctrl.sendMessage(params, 673 ctrl.sendMessage(params,
675 _urlLoaderInterceptorFactoryMethodCreateName); 674 _urlLoaderInterceptorFactoryMethodCreateName);
676 } 675 }
677 } 676 }
678 677
679 678 class _UrlLoaderInterceptorFactoryStubControl
680 class UrlLoaderInterceptorFactoryStub extends bindings.Stub { 679 extends bindings.StubMessageHandler
680 implements bindings.StubControl<UrlLoaderInterceptorFactory> {
681 UrlLoaderInterceptorFactory _impl; 681 UrlLoaderInterceptorFactory _impl;
682 682
683 UrlLoaderInterceptorFactoryStub.fromEndpoint( 683 _UrlLoaderInterceptorFactoryStubControl.fromEndpoint(
684 core.MojoMessagePipeEndpoint endpoint, [UrlLoaderInterceptorFactory impl]) 684 core.MojoMessagePipeEndpoint endpoint, [UrlLoaderInterceptorFactory impl])
685 : super.fromEndpoint(endpoint, autoBegin: impl != null) { 685 : super.fromEndpoint(endpoint, autoBegin: impl != null) {
686 _impl = impl; 686 _impl = impl;
687 } 687 }
688 688
689 UrlLoaderInterceptorFactoryStub.fromHandle( 689 _UrlLoaderInterceptorFactoryStubControl.fromHandle(
690 core.MojoHandle handle, [UrlLoaderInterceptorFactory impl]) 690 core.MojoHandle handle, [UrlLoaderInterceptorFactory impl])
691 : super.fromHandle(handle, autoBegin: impl != null) { 691 : super.fromHandle(handle, autoBegin: impl != null) {
692 _impl = impl; 692 _impl = impl;
693 } 693 }
694 694
695 UrlLoaderInterceptorFactoryStub.unbound([this._impl]) : super.unbound(); 695 _UrlLoaderInterceptorFactoryStubControl.unbound([this._impl]) : super.unbound( );
696
697 static UrlLoaderInterceptorFactoryStub newFromEndpoint(
698 core.MojoMessagePipeEndpoint endpoint) {
699 assert(endpoint.setDescription("For UrlLoaderInterceptorFactoryStub"));
700 return new UrlLoaderInterceptorFactoryStub.fromEndpoint(endpoint);
701 }
702 696
703 697
704 698
705 dynamic handleMessage(bindings.ServiceMessage message) { 699 dynamic handleMessage(bindings.ServiceMessage message) {
706 if (bindings.ControlMessageHandler.isControlMessage(message)) { 700 if (bindings.ControlMessageHandler.isControlMessage(message)) {
707 return bindings.ControlMessageHandler.handleMessage(this, 701 return bindings.ControlMessageHandler.handleMessage(this,
708 0, 702 0,
709 message); 703 message);
710 } 704 }
711 if (_impl == null) { 705 if (_impl == null) {
(...skipping 24 matching lines...) Expand all
736 } 730 }
737 731
738 @override 732 @override
739 void bind(core.MojoMessagePipeEndpoint endpoint) { 733 void bind(core.MojoMessagePipeEndpoint endpoint) {
740 super.bind(endpoint); 734 super.bind(endpoint);
741 if (!isOpen && (_impl != null)) { 735 if (!isOpen && (_impl != null)) {
742 beginHandlingEvents(); 736 beginHandlingEvents();
743 } 737 }
744 } 738 }
745 739
740 @override
746 String toString() { 741 String toString() {
747 var superString = super.toString(); 742 var superString = super.toString();
748 return "UrlLoaderInterceptorFactoryStub($superString)"; 743 return "_UrlLoaderInterceptorFactoryStubControl($superString)";
749 } 744 }
750 745
751 int get version => 0; 746 int get version => 0;
752 747
753 static service_describer.ServiceDescription _cachedServiceDescription; 748 static service_describer.ServiceDescription _cachedServiceDescription;
754 static service_describer.ServiceDescription get serviceDescription { 749 static service_describer.ServiceDescription get serviceDescription {
755 if (_cachedServiceDescription == null) { 750 if (_cachedServiceDescription == null) {
756 _cachedServiceDescription = new _UrlLoaderInterceptorFactoryServiceDescrip tion(); 751 _cachedServiceDescription = new _UrlLoaderInterceptorFactoryServiceDescrip tion();
757 } 752 }
758 return _cachedServiceDescription; 753 return _cachedServiceDescription;
759 } 754 }
760 } 755 }
761 756
757 class UrlLoaderInterceptorFactoryStub
758 extends bindings.Stub<UrlLoaderInterceptorFactory>
759 implements UrlLoaderInterceptorFactory {
760 UrlLoaderInterceptorFactoryStub.fromEndpoint(
761 core.MojoMessagePipeEndpoint endpoint, [UrlLoaderInterceptorFactory impl])
762 : super(new _UrlLoaderInterceptorFactoryStubControl.fromEndpoint(endpoint, impl));
763
764 UrlLoaderInterceptorFactoryStub.fromHandle(
765 core.MojoHandle handle, [UrlLoaderInterceptorFactory impl])
766 : super(new _UrlLoaderInterceptorFactoryStubControl.fromHandle(handle, imp l));
767
768 UrlLoaderInterceptorFactoryStub.unbound([UrlLoaderInterceptorFactory impl])
769 : super(new _UrlLoaderInterceptorFactoryStubControl.unbound(impl));
770
771 static UrlLoaderInterceptorFactoryStub newFromEndpoint(
772 core.MojoMessagePipeEndpoint endpoint) {
773 assert(endpoint.setDescription("For UrlLoaderInterceptorFactoryStub"));
774 return new UrlLoaderInterceptorFactoryStub.fromEndpoint(endpoint);
775 }
776
777 static service_describer.ServiceDescription get serviceDescription =>
778 _UrlLoaderInterceptorFactoryStubControl.serviceDescription;
779
780
781 void create(Object interceptor) {
782 return impl.create(interceptor);
783 }
784 }
785
762 const int _urlLoaderInterceptorMethodInterceptRequestName = 0; 786 const int _urlLoaderInterceptorMethodInterceptRequestName = 0;
763 const int _urlLoaderInterceptorMethodInterceptFollowRedirectName = 1; 787 const int _urlLoaderInterceptorMethodInterceptFollowRedirectName = 1;
764 const int _urlLoaderInterceptorMethodInterceptResponseName = 2; 788 const int _urlLoaderInterceptorMethodInterceptResponseName = 2;
765 789
766 class _UrlLoaderInterceptorServiceDescription implements service_describer.Servi ceDescription { 790 class _UrlLoaderInterceptorServiceDescription implements service_describer.Servi ceDescription {
767 dynamic getTopLevelInterface([Function responseFactory]) => 791 dynamic getTopLevelInterface([Function responseFactory]) =>
768 responseFactory(null); 792 responseFactory(null);
769 793
770 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 794 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
771 responseFactory(null); 795 responseFactory(null);
772 796
773 dynamic getAllTypeDefinitions([Function responseFactory]) => 797 dynamic getAllTypeDefinitions([Function responseFactory]) =>
774 responseFactory(null); 798 responseFactory(null);
775 } 799 }
776 800
777 abstract class UrlLoaderInterceptor { 801 abstract class UrlLoaderInterceptor {
778 static const String serviceName = null; 802 static const String serviceName = null;
779 dynamic interceptRequest(url_request_mojom.UrlRequest request,[Function respon seFactory = null]); 803 dynamic interceptRequest(url_request_mojom.UrlRequest request,[Function respon seFactory = null]);
780 dynamic interceptFollowRedirect([Function responseFactory = null]); 804 dynamic interceptFollowRedirect([Function responseFactory = null]);
781 dynamic interceptResponse(url_response_mojom.UrlResponse response,[Function re sponseFactory = null]); 805 dynamic interceptResponse(url_response_mojom.UrlResponse response,[Function re sponseFactory = null]);
782 } 806 }
783 807
784 808 class _UrlLoaderInterceptorProxyControl
785 class _UrlLoaderInterceptorProxyControl extends bindings.ProxyMessageHandler 809 extends bindings.ProxyMessageHandler
786 implements bindings.ProxyControl { 810 implements bindings.ProxyControl {
787 _UrlLoaderInterceptorProxyControl.fromEndpoint( 811 _UrlLoaderInterceptorProxyControl.fromEndpoint(
788 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 812 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
789 813
790 _UrlLoaderInterceptorProxyControl.fromHandle( 814 _UrlLoaderInterceptorProxyControl.fromHandle(
791 core.MojoHandle handle) : super.fromHandle(handle); 815 core.MojoHandle handle) : super.fromHandle(handle);
792 816
793 _UrlLoaderInterceptorProxyControl.unbound() : super.unbound(); 817 _UrlLoaderInterceptorProxyControl.unbound() : super.unbound();
794 818
795 service_describer.ServiceDescription get serviceDescription => 819 service_describer.ServiceDescription get serviceDescription =>
796 new _UrlLoaderInterceptorServiceDescription(); 820 new _UrlLoaderInterceptorServiceDescription();
797 821
798 String get serviceName => UrlLoaderInterceptor.serviceName; 822 String get serviceName => UrlLoaderInterceptor.serviceName;
799 823
800 @override
801 void handleResponse(bindings.ServiceMessage message) { 824 void handleResponse(bindings.ServiceMessage message) {
802 switch (message.header.type) { 825 switch (message.header.type) {
803 case _urlLoaderInterceptorMethodInterceptRequestName: 826 case _urlLoaderInterceptorMethodInterceptRequestName:
804 var r = UrlLoaderInterceptorInterceptRequestResponseParams.deserialize( 827 var r = UrlLoaderInterceptorInterceptRequestResponseParams.deserialize(
805 message.payload); 828 message.payload);
806 if (!message.header.hasRequestId) { 829 if (!message.header.hasRequestId) {
807 proxyError("Expected a message with a valid request Id."); 830 proxyError("Expected a message with a valid request Id.");
808 return; 831 return;
809 } 832 }
810 Completer c = completerMap[message.header.requestId]; 833 Completer c = completerMap[message.header.requestId];
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 } 890 }
868 } 891 }
869 892
870 @override 893 @override
871 String toString() { 894 String toString() {
872 var superString = super.toString(); 895 var superString = super.toString();
873 return "_UrlLoaderInterceptorProxyControl($superString)"; 896 return "_UrlLoaderInterceptorProxyControl($superString)";
874 } 897 }
875 } 898 }
876 899
877 900 class UrlLoaderInterceptorProxy
878 class UrlLoaderInterceptorProxy extends bindings.Proxy 901 extends bindings.Proxy
879 implements UrlLoaderInterceptor { 902 implements UrlLoaderInterceptor {
880 UrlLoaderInterceptorProxy.fromEndpoint( 903 UrlLoaderInterceptorProxy.fromEndpoint(
881 core.MojoMessagePipeEndpoint endpoint) 904 core.MojoMessagePipeEndpoint endpoint)
882 : super(new _UrlLoaderInterceptorProxyControl.fromEndpoint(endpoint)); 905 : super(new _UrlLoaderInterceptorProxyControl.fromEndpoint(endpoint));
883 906
884 UrlLoaderInterceptorProxy.fromHandle(core.MojoHandle handle) 907 UrlLoaderInterceptorProxy.fromHandle(core.MojoHandle handle)
885 : super(new _UrlLoaderInterceptorProxyControl.fromHandle(handle)); 908 : super(new _UrlLoaderInterceptorProxyControl.fromHandle(handle));
886 909
887 UrlLoaderInterceptorProxy.unbound() 910 UrlLoaderInterceptorProxy.unbound()
888 : super(new _UrlLoaderInterceptorProxyControl.unbound()); 911 : super(new _UrlLoaderInterceptorProxyControl.unbound());
889 912
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 var params = new _UrlLoaderInterceptorInterceptResponseParams(); 945 var params = new _UrlLoaderInterceptorInterceptResponseParams();
923 params.response = response; 946 params.response = response;
924 return ctrl.sendMessageWithRequestId( 947 return ctrl.sendMessageWithRequestId(
925 params, 948 params,
926 _urlLoaderInterceptorMethodInterceptResponseName, 949 _urlLoaderInterceptorMethodInterceptResponseName,
927 -1, 950 -1,
928 bindings.MessageHeader.kMessageExpectsResponse); 951 bindings.MessageHeader.kMessageExpectsResponse);
929 } 952 }
930 } 953 }
931 954
932 955 class _UrlLoaderInterceptorStubControl
933 class UrlLoaderInterceptorStub extends bindings.Stub { 956 extends bindings.StubMessageHandler
957 implements bindings.StubControl<UrlLoaderInterceptor> {
934 UrlLoaderInterceptor _impl; 958 UrlLoaderInterceptor _impl;
935 959
936 UrlLoaderInterceptorStub.fromEndpoint( 960 _UrlLoaderInterceptorStubControl.fromEndpoint(
937 core.MojoMessagePipeEndpoint endpoint, [UrlLoaderInterceptor impl]) 961 core.MojoMessagePipeEndpoint endpoint, [UrlLoaderInterceptor impl])
938 : super.fromEndpoint(endpoint, autoBegin: impl != null) { 962 : super.fromEndpoint(endpoint, autoBegin: impl != null) {
939 _impl = impl; 963 _impl = impl;
940 } 964 }
941 965
942 UrlLoaderInterceptorStub.fromHandle( 966 _UrlLoaderInterceptorStubControl.fromHandle(
943 core.MojoHandle handle, [UrlLoaderInterceptor impl]) 967 core.MojoHandle handle, [UrlLoaderInterceptor impl])
944 : super.fromHandle(handle, autoBegin: impl != null) { 968 : super.fromHandle(handle, autoBegin: impl != null) {
945 _impl = impl; 969 _impl = impl;
946 } 970 }
947 971
948 UrlLoaderInterceptorStub.unbound([this._impl]) : super.unbound(); 972 _UrlLoaderInterceptorStubControl.unbound([this._impl]) : super.unbound();
949
950 static UrlLoaderInterceptorStub newFromEndpoint(
951 core.MojoMessagePipeEndpoint endpoint) {
952 assert(endpoint.setDescription("For UrlLoaderInterceptorStub"));
953 return new UrlLoaderInterceptorStub.fromEndpoint(endpoint);
954 }
955 973
956 974
957 UrlLoaderInterceptorInterceptRequestResponseParams _urlLoaderInterceptorInterc eptRequestResponseParamsFactory(UrlLoaderInterceptorResponse response) { 975 UrlLoaderInterceptorInterceptRequestResponseParams _urlLoaderInterceptorInterc eptRequestResponseParamsFactory(UrlLoaderInterceptorResponse response) {
958 var result = new UrlLoaderInterceptorInterceptRequestResponseParams(); 976 var result = new UrlLoaderInterceptorInterceptRequestResponseParams();
959 result.response = response; 977 result.response = response;
960 return result; 978 return result;
961 } 979 }
962 UrlLoaderInterceptorInterceptFollowRedirectResponseParams _urlLoaderIntercepto rInterceptFollowRedirectResponseParamsFactory(UrlLoaderInterceptorResponse respo nse) { 980 UrlLoaderInterceptorInterceptFollowRedirectResponseParams _urlLoaderIntercepto rInterceptFollowRedirectResponseParamsFactory(UrlLoaderInterceptorResponse respo nse) {
963 var result = new UrlLoaderInterceptorInterceptFollowRedirectResponseParams() ; 981 var result = new UrlLoaderInterceptorInterceptFollowRedirectResponseParams() ;
964 result.response = response; 982 result.response = response;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 } 1081 }
1064 1082
1065 @override 1083 @override
1066 void bind(core.MojoMessagePipeEndpoint endpoint) { 1084 void bind(core.MojoMessagePipeEndpoint endpoint) {
1067 super.bind(endpoint); 1085 super.bind(endpoint);
1068 if (!isOpen && (_impl != null)) { 1086 if (!isOpen && (_impl != null)) {
1069 beginHandlingEvents(); 1087 beginHandlingEvents();
1070 } 1088 }
1071 } 1089 }
1072 1090
1091 @override
1073 String toString() { 1092 String toString() {
1074 var superString = super.toString(); 1093 var superString = super.toString();
1075 return "UrlLoaderInterceptorStub($superString)"; 1094 return "_UrlLoaderInterceptorStubControl($superString)";
1076 } 1095 }
1077 1096
1078 int get version => 0; 1097 int get version => 0;
1079 1098
1080 static service_describer.ServiceDescription _cachedServiceDescription; 1099 static service_describer.ServiceDescription _cachedServiceDescription;
1081 static service_describer.ServiceDescription get serviceDescription { 1100 static service_describer.ServiceDescription get serviceDescription {
1082 if (_cachedServiceDescription == null) { 1101 if (_cachedServiceDescription == null) {
1083 _cachedServiceDescription = new _UrlLoaderInterceptorServiceDescription(); 1102 _cachedServiceDescription = new _UrlLoaderInterceptorServiceDescription();
1084 } 1103 }
1085 return _cachedServiceDescription; 1104 return _cachedServiceDescription;
1086 } 1105 }
1087 } 1106 }
1088 1107
1108 class UrlLoaderInterceptorStub
1109 extends bindings.Stub<UrlLoaderInterceptor>
1110 implements UrlLoaderInterceptor {
1111 UrlLoaderInterceptorStub.fromEndpoint(
1112 core.MojoMessagePipeEndpoint endpoint, [UrlLoaderInterceptor impl])
1113 : super(new _UrlLoaderInterceptorStubControl.fromEndpoint(endpoint, impl)) ;
1114
1115 UrlLoaderInterceptorStub.fromHandle(
1116 core.MojoHandle handle, [UrlLoaderInterceptor impl])
1117 : super(new _UrlLoaderInterceptorStubControl.fromHandle(handle, impl));
1118
1119 UrlLoaderInterceptorStub.unbound([UrlLoaderInterceptor impl])
1120 : super(new _UrlLoaderInterceptorStubControl.unbound(impl));
1121
1122 static UrlLoaderInterceptorStub newFromEndpoint(
1123 core.MojoMessagePipeEndpoint endpoint) {
1124 assert(endpoint.setDescription("For UrlLoaderInterceptorStub"));
1125 return new UrlLoaderInterceptorStub.fromEndpoint(endpoint);
1126 }
1127
1128 static service_describer.ServiceDescription get serviceDescription =>
1129 _UrlLoaderInterceptorStubControl.serviceDescription;
1130
1131
1132 dynamic interceptRequest(url_request_mojom.UrlRequest request,[Function respon seFactory = null]) {
1133 return impl.interceptRequest(request,responseFactory);
1134 }
1135 dynamic interceptFollowRedirect([Function responseFactory = null]) {
1136 return impl.interceptFollowRedirect(responseFactory);
1137 }
1138 dynamic interceptResponse(url_response_mojom.UrlResponse response,[Function re sponseFactory = null]) {
1139 return impl.interceptResponse(response,responseFactory);
1140 }
1141 }
1142
1089 1143
1090 1144
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698