| OLD | NEW |
| 1 // WARNING: DO NOT EDIT. This file was generated by a program. | 1 // WARNING: DO NOT EDIT. This file was generated by a program. |
| 2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. | 2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. |
| 3 | 3 |
| 4 library authenticating_url_loader_interceptor_meta_factory_mojom; | 4 library authenticating_url_loader_interceptor_meta_factory_mojom; |
| 5 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'package:mojo/bindings.dart' as bindings; | 6 import 'package:mojo/bindings.dart' as bindings; |
| 7 import 'package:mojo/core.dart' as core; | 7 import 'package:mojo/core.dart' as core; |
| 8 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; | 8 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
| 9 import 'package:mojo_services/authentication/authentication.mojom.dart' as authe
ntication_mojom; | 9 import 'package:mojo_services/authentication/authentication.mojom.dart' as authe
ntication_mojom; |
| 10 import 'package:mojo_services/mojo/url_loader_interceptor.mojom.dart' as url_loa
der_interceptor_mojom; | 10 import 'package:mojo_services/mojo/url_loader_interceptor.mojom.dart' as url_loa
der_interceptor_mojom; |
| 11 | 11 |
| 12 | 12 |
| 13 | 13 |
| 14 class _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderInterceptorFa
ctoryParams extends bindings.Struct { | 14 class _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderInterceptorFa
ctoryParams extends bindings.Struct { |
| 15 static const List<bindings.StructDataHeader> kVersions = const [ | 15 static const List<bindings.StructDataHeader> kVersions = const [ |
| 16 const bindings.StructDataHeader(24, 0) | 16 const bindings.StructDataHeader(24, 0) |
| 17 ]; | 17 ]; |
| 18 url_loader_interceptor_mojom.UrlLoaderInterceptorFactoryInterfaceRequest facto
ryRequest = null; | 18 url_loader_interceptor_mojom.UrlLoaderInterceptorFactoryInterfaceRequest facto
ryRequest = null; |
| 19 authentication_mojom.AuthenticationServiceInterface authenticationService = nu
ll; | 19 authentication_mojom.AuthenticationServiceInterface authenticationService = nu
ll; |
| 20 | 20 |
| 21 _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderInterceptorFactor
yParams() : super(kVersions.last.size); | 21 _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderInterceptorFactor
yParams() : super(kVersions.last.size); |
| 22 | 22 |
| 23 _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderInterceptorFactor
yParams.init( |
| 24 url_loader_interceptor_mojom.UrlLoaderInterceptorFactoryInterfaceRequest thi
s.factoryRequest, |
| 25 authentication_mojom.AuthenticationServiceInterface this.authenticationServi
ce |
| 26 ) : super(kVersions.last.size); |
| 27 |
| 23 static _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderIntercepto
rFactoryParams deserialize(bindings.Message message) { | 28 static _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderIntercepto
rFactoryParams deserialize(bindings.Message message) { |
| 24 var decoder = new bindings.Decoder(message); | 29 var decoder = new bindings.Decoder(message); |
| 25 var result = decode(decoder); | 30 var result = decode(decoder); |
| 26 if (decoder.excessHandles != null) { | 31 if (decoder.excessHandles != null) { |
| 27 decoder.excessHandles.forEach((h) => h.close()); | 32 decoder.excessHandles.forEach((h) => h.close()); |
| 28 } | 33 } |
| 29 return result; | 34 return result; |
| 30 } | 35 } |
| 31 | 36 |
| 32 static _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderIntercepto
rFactoryParams decode(bindings.Decoder decoder0) { | 37 static _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderIntercepto
rFactoryParams decode(bindings.Decoder decoder0) { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 95 |
| 91 Map toJson() { | 96 Map toJson() { |
| 92 throw new bindings.MojoCodecError( | 97 throw new bindings.MojoCodecError( |
| 93 'Object containing handles cannot be encoded to JSON.'); | 98 'Object containing handles cannot be encoded to JSON.'); |
| 94 } | 99 } |
| 95 } | 100 } |
| 96 | 101 |
| 97 const int _authenticatingUrlLoaderInterceptorMetaFactoryMethodCreateUrlLoaderInt
erceptorFactoryName = 0; | 102 const int _authenticatingUrlLoaderInterceptorMetaFactoryMethodCreateUrlLoaderInt
erceptorFactoryName = 0; |
| 98 | 103 |
| 99 class _AuthenticatingUrlLoaderInterceptorMetaFactoryServiceDescription implement
s service_describer.ServiceDescription { | 104 class _AuthenticatingUrlLoaderInterceptorMetaFactoryServiceDescription implement
s service_describer.ServiceDescription { |
| 100 dynamic getTopLevelInterface([Function responseFactory]) => | 105 void getTopLevelInterface(Function responder) { |
| 101 responseFactory(null); | 106 responder(null); |
| 107 } |
| 102 | 108 |
| 103 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 109 void getTypeDefinition(String typeKey, Function responder) { |
| 104 responseFactory(null); | 110 responder(null); |
| 111 } |
| 105 | 112 |
| 106 dynamic getAllTypeDefinitions([Function responseFactory]) => | 113 void getAllTypeDefinitions(Function responder) { |
| 107 responseFactory(null); | 114 responder(null); |
| 115 } |
| 108 } | 116 } |
| 109 | 117 |
| 110 abstract class AuthenticatingUrlLoaderInterceptorMetaFactory { | 118 abstract class AuthenticatingUrlLoaderInterceptorMetaFactory { |
| 111 static const String serviceName = "mojo::AuthenticatingURLLoaderInterceptorMet
aFactory"; | 119 static const String serviceName = "mojo::AuthenticatingURLLoaderInterceptorMet
aFactory"; |
| 112 | 120 |
| 113 static service_describer.ServiceDescription _cachedServiceDescription; | 121 static service_describer.ServiceDescription _cachedServiceDescription; |
| 114 static service_describer.ServiceDescription get serviceDescription { | 122 static service_describer.ServiceDescription get serviceDescription { |
| 115 if (_cachedServiceDescription == null) { | 123 if (_cachedServiceDescription == null) { |
| 116 _cachedServiceDescription = new _AuthenticatingUrlLoaderInterceptorMetaFac
toryServiceDescription(); | 124 _cachedServiceDescription = new _AuthenticatingUrlLoaderInterceptorMetaFac
toryServiceDescription(); |
| 117 } | 125 } |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 : super.fromHandle(handle, autoBegin: impl != null) { | 256 : super.fromHandle(handle, autoBegin: impl != null) { |
| 249 _impl = impl; | 257 _impl = impl; |
| 250 } | 258 } |
| 251 | 259 |
| 252 _AuthenticatingUrlLoaderInterceptorMetaFactoryStubControl.unbound([this._impl]
) : super.unbound(); | 260 _AuthenticatingUrlLoaderInterceptorMetaFactoryStubControl.unbound([this._impl]
) : super.unbound(); |
| 253 | 261 |
| 254 String get serviceName => AuthenticatingUrlLoaderInterceptorMetaFactory.servic
eName; | 262 String get serviceName => AuthenticatingUrlLoaderInterceptorMetaFactory.servic
eName; |
| 255 | 263 |
| 256 | 264 |
| 257 | 265 |
| 258 dynamic handleMessage(bindings.ServiceMessage message) { | 266 void handleMessage(bindings.ServiceMessage message) { |
| 259 if (bindings.ControlMessageHandler.isControlMessage(message)) { | 267 if (bindings.ControlMessageHandler.isControlMessage(message)) { |
| 260 return bindings.ControlMessageHandler.handleMessage(this, | 268 bindings.ControlMessageHandler.handleMessage( |
| 261 0, | 269 this, 0, message); |
| 262 message); | 270 return; |
| 263 } | 271 } |
| 264 if (_impl == null) { | 272 if (_impl == null) { |
| 265 throw new core.MojoApiError("$this has no implementation set"); | 273 throw new core.MojoApiError("$this has no implementation set"); |
| 266 } | 274 } |
| 267 switch (message.header.type) { | 275 switch (message.header.type) { |
| 268 case _authenticatingUrlLoaderInterceptorMetaFactoryMethodCreateUrlLoaderIn
terceptorFactoryName: | 276 case _authenticatingUrlLoaderInterceptorMetaFactoryMethodCreateUrlLoaderIn
terceptorFactoryName: |
| 269 var params = _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoad
erInterceptorFactoryParams.deserialize( | 277 var params = _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoad
erInterceptorFactoryParams.deserialize( |
| 270 message.payload); | 278 message.payload); |
| 271 _impl.createUrlLoaderInterceptorFactory(params.factoryRequest, params.au
thenticationService); | 279 _impl.createUrlLoaderInterceptorFactory(params.factoryRequest, params.au
thenticationService); |
| 272 break; | 280 break; |
| 273 default: | 281 default: |
| 274 throw new bindings.MojoCodecError("Unexpected message name"); | 282 throw new bindings.MojoCodecError("Unexpected message name"); |
| 275 break; | 283 break; |
| 276 } | 284 } |
| 277 return null; | |
| 278 } | 285 } |
| 279 | 286 |
| 280 AuthenticatingUrlLoaderInterceptorMetaFactory get impl => _impl; | 287 AuthenticatingUrlLoaderInterceptorMetaFactory get impl => _impl; |
| 281 set impl(AuthenticatingUrlLoaderInterceptorMetaFactory d) { | 288 set impl(AuthenticatingUrlLoaderInterceptorMetaFactory d) { |
| 282 if (d == null) { | 289 if (d == null) { |
| 283 throw new core.MojoApiError("$this: Cannot set a null implementation"); | 290 throw new core.MojoApiError("$this: Cannot set a null implementation"); |
| 284 } | 291 } |
| 285 if (isBound && (_impl == null)) { | 292 if (isBound && (_impl == null)) { |
| 286 beginHandlingEvents(); | 293 beginHandlingEvents(); |
| 287 } | 294 } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 } | 335 } |
| 329 | 336 |
| 330 | 337 |
| 331 void createUrlLoaderInterceptorFactory(url_loader_interceptor_mojom.UrlLoaderI
nterceptorFactoryInterfaceRequest factoryRequest, authentication_mojom.Authentic
ationServiceInterface authenticationService) { | 338 void createUrlLoaderInterceptorFactory(url_loader_interceptor_mojom.UrlLoaderI
nterceptorFactoryInterfaceRequest factoryRequest, authentication_mojom.Authentic
ationServiceInterface authenticationService) { |
| 332 return impl.createUrlLoaderInterceptorFactory(factoryRequest, authentication
Service); | 339 return impl.createUrlLoaderInterceptorFactory(factoryRequest, authentication
Service); |
| 333 } | 340 } |
| 334 } | 341 } |
| 335 | 342 |
| 336 | 343 |
| 337 | 344 |
| OLD | NEW |