| Index: mojo/dart/packages/mojo_services/lib/mojo/authenticating_url_loader_interceptor_meta_factory.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/mojo/authenticating_url_loader_interceptor_meta_factory.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/authenticating_url_loader_interceptor_meta_factory.mojom.dart
|
| index 167a6f5a9d76ecbcefc4eaf22e1c15455920d888..872efcf1cd88a09d4b452544e75235dc1883bfb9 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/mojo/authenticating_url_loader_interceptor_meta_factory.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/mojo/authenticating_url_loader_interceptor_meta_factory.mojom.dart
|
| @@ -8,6 +8,8 @@ import 'dart:async';
|
|
|
| import 'package:mojo/bindings.dart' as bindings;
|
| import 'package:mojo/core.dart' as core;
|
| +import 'package:mojo/mojo/mojom_types.mojom.dart' as mojom_types;
|
| +import 'package:mojo/mojo/service_describer.mojom.dart' as service_describer;
|
| import 'package:mojo_services/authentication/authentication.mojom.dart' as authentication_mojom;
|
| import 'package:mojo_services/mojo/url_loader_interceptor.mojom.dart' as url_loader_interceptor_mojom;
|
|
|
| @@ -86,11 +88,62 @@ class AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderInterceptorFac
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _authenticating_url_loader_interceptor_meta_factory_AuthenticatingURLLoaderInterceptorMetaFactory_CreateURLLoaderInterceptorFactory_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderInterceptorFactoryParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'FactoryRequest')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..isInterfaceRequest = true
|
| + ..identifier = '_url_loader_interceptor_URLLoaderInterceptorFactory__'
|
| + ..typeKey = '_url_loader_interceptor_URLLoaderInterceptorFactory__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'AuthenticationService')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_authentication_AuthenticationService__'
|
| + ..typeKey = '_authentication_AuthenticationService__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
| +
|
| const int kAuthenticatingUrlLoaderInterceptorMetaFactory_createUrlLoaderInterceptorFactory_name = 0;
|
|
|
| const String AuthenticatingUrlLoaderInterceptorMetaFactoryName =
|
| 'mojo::AuthenticatingURLLoaderInterceptorMetaFactory';
|
|
|
| +mojom_types.MojomInterface _authenticating_url_loader_interceptor_meta_factory_AuthenticatingURLLoaderInterceptorMetaFactory__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "AuthenticatingUrlLoaderInterceptorMetaFactory")
|
| + ..interfaceName = "AuthenticatingUrlLoaderInterceptorMetaFactory"
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +kAuthenticatingUrlLoaderInterceptorMetaFactory_createUrlLoaderInterceptorFactory_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "CreateUrlLoaderInterceptorFactory")
|
| + ..ordinal = kAuthenticatingUrlLoaderInterceptorMetaFactory_createUrlLoaderInterceptorFactory_name..parameters = _authenticating_url_loader_interceptor_meta_factory_AuthenticatingURLLoaderInterceptorMetaFactory_CreateURLLoaderInterceptorFactory_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _AuthenticatingUrlLoaderInterceptorMetaFactoryServiceDescription extends service_describer.ServiceDescription {
|
| + // Avoid infinite loop by overriding serviceDescription field.
|
| + final service_describer.ServiceDescription serviceDescription = null;
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _authenticating_url_loader_interceptor_meta_factory_AuthenticatingURLLoaderInterceptorMetaFactory__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class AuthenticatingUrlLoaderInterceptorMetaFactory {
|
| void createUrlLoaderInterceptorFactory(Object factoryRequest, Object authenticationService);
|
|
|
| @@ -114,6 +167,9 @@ class AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl extends bindings.Pr
|
|
|
| String get name => AuthenticatingUrlLoaderInterceptorMetaFactoryName;
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _AuthenticatingUrlLoaderInterceptorMetaFactoryServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -260,6 +316,48 @@ class AuthenticatingUrlLoaderInterceptorMetaFactoryStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _AuthenticatingUrlLoaderInterceptorMetaFactoryServiceDescription();
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +var _MojomDesc__ = _initDescriptions();
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new Map<String, mojom_types.UserDefinedType>();
|
| +
|
| + map["_authenticating_url_loader_interceptor_meta_factory_AuthenticatingURLLoaderInterceptorMetaFactory_CreateURLLoaderInterceptorFactory_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _authenticating_url_loader_interceptor_meta_factory_AuthenticatingURLLoaderInterceptorMetaFactory_CreateURLLoaderInterceptorFactory_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_authenticating_url_loader_interceptor_meta_factory_AuthenticatingURLLoaderInterceptorMetaFactory__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _authenticating_url_loader_interceptor_meta_factory_AuthenticatingURLLoaderInterceptorMetaFactory__();
|
| +
|
| +authentication_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
|
| + map[s] = udt;
|
| +});
|
| +url_loader_interceptor_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
|
| + map[s] = udt;
|
| +});
|
| + return map;
|
| +}
|
| +
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + return _MojomDesc__;
|
| }
|
|
|
|
|
|
|