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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/authenticating_url_loader_interceptor_meta_factory.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Update to master and regenerate mojoms Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
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 30e5cce427fccebf4d30f9095705887342880793..e4115ff094e5914ae75cdbc34c220a224742121b 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
@@ -5,9 +5,12 @@
library authenticating_url_loader_interceptor_meta_factory_mojom;
import 'dart:async';
+import 'dart:collection';
import 'package:mojo/bindings.dart' as bindings;
import 'package:mojo/core.dart' as core;
+import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
+import 'package:mojo/mojo/bindings/types/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;
@@ -85,9 +88,61 @@ class _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderInterceptorFa
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _authenticating_url_loader_interceptor_meta_factory_AuthenticatingURLLoaderInterceptorMetaFactory_CreateURLLoaderInterceptorFactory_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderInterceptorFactoryParams'
+ ..fullIdentifier = 'mojo._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 _AuthenticatingUrlLoaderInterceptorMetaFactory_createUrlLoaderInterceptorFactoryName = 0;
+mojom_types.MojomInterface _authenticating_url_loader_interceptor_meta_factory_AuthenticatingURLLoaderInterceptorMetaFactory__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'AuthenticatingUrlLoaderInterceptorMetaFactory'
+ ..fullIdentifier = 'mojo.AuthenticatingUrlLoaderInterceptorMetaFactory')
+ ..interfaceName = 'AuthenticatingUrlLoaderInterceptorMetaFactory'
+ ..methods = <int, mojom_types.MojomMethod>{
+_AuthenticatingUrlLoaderInterceptorMetaFactory_createUrlLoaderInterceptorFactoryName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CreateUrlLoaderInterceptorFactory')
+ ..ordinal = _AuthenticatingUrlLoaderInterceptorMetaFactory_createUrlLoaderInterceptorFactoryName..parameters = _authenticating_url_loader_interceptor_meta_factory_AuthenticatingURLLoaderInterceptorMetaFactory_CreateURLLoaderInterceptorFactory_Params__(),
+ };
+}
+
+class _AuthenticatingUrlLoaderInterceptorMetaFactoryServiceDescription implements service_describer.ServiceDescription {
+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 {
static const String serviceName = "mojo::AuthenticatingURLLoaderInterceptorMetaFactory";
void createUrlLoaderInterceptorFactory(Object factoryRequest, Object authenticationService);
@@ -109,6 +164,9 @@ class _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl extends bindings.P
return new _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _AuthenticatingUrlLoaderInterceptorMetaFactoryServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -253,6 +311,41 @@ class AuthenticatingUrlLoaderInterceptorMetaFactoryStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _AuthenticatingUrlLoaderInterceptorMetaFactoryServiceDescription();
+}
+
+
+
+
+
+
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new HashMap<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;
}
+var _MojomDesc;
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ if (_MojomDesc == null) {
+ _MojomDesc = _initDescriptions();
+ }
+ return _MojomDesc;
+}

Powered by Google App Engine
This is Rietveld 408576698