Index: mojo/dart/packages/mojo_services/lib/mojo/url_loader_interceptor.mojom.dart |
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/url_loader_interceptor.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/url_loader_interceptor.mojom.dart |
index db51ac98ae73da74e1440ca2eaf731712408b968..b6d171b050972ec567ad41d7eb22ba23abc8c5af 100644 |
--- a/mojo/dart/packages/mojo_services/lib/mojo/url_loader_interceptor.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/mojo/url_loader_interceptor.mojom.dart |
@@ -5,9 +5,12 @@ |
library url_loader_interceptor_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/mojo/url_request.mojom.dart' as url_request_mojom; |
import 'package:mojo/mojo/url_response.mojom.dart' as url_response_mojom; |
@@ -87,6 +90,35 @@ class UrlLoaderInterceptorResponse extends bindings.Struct { |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptorResponse__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'UrlLoaderInterceptorResponse' |
+ ..fullIdentifier = 'mojo.UrlLoaderInterceptorResponse') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Request') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..identifier = '_url_request_URLRequest__' |
+ ..typeKey = '_url_request_URLRequest__' |
+ )), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Response') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..identifier = '_url_response_URLResponse__' |
+ ..typeKey = '_url_response_URLResponse__' |
+ )), |
+ ]; |
+} |
class _UrlLoaderInterceptorFactoryCreateParams extends bindings.Struct { |
@@ -153,6 +185,23 @@ class _UrlLoaderInterceptorFactoryCreateParams extends bindings.Struct { |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptorFactory_Create_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_UrlLoaderInterceptorFactoryCreateParams' |
+ ..fullIdentifier = 'mojo._UrlLoaderInterceptorFactoryCreateParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Interceptor') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..isInterfaceRequest = true |
+ ..identifier = '_url_loader_interceptor_URLLoaderInterceptor__' |
+ ..typeKey = '_url_loader_interceptor_URLLoaderInterceptor__' |
+ )), |
+ ]; |
+} |
class _UrlLoaderInterceptorInterceptRequestParams extends bindings.Struct { |
@@ -220,6 +269,22 @@ class _UrlLoaderInterceptorInterceptRequestParams extends bindings.Struct { |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptor_InterceptRequest_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_UrlLoaderInterceptorInterceptRequestParams' |
+ ..fullIdentifier = 'mojo._UrlLoaderInterceptorInterceptRequestParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Request') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_url_request_URLRequest__' |
+ ..typeKey = '_url_request_URLRequest__' |
+ )), |
+ ]; |
+} |
class UrlLoaderInterceptorInterceptRequestResponseParams extends bindings.Struct { |
@@ -287,6 +352,22 @@ class UrlLoaderInterceptorInterceptRequestResponseParams extends bindings.Struct |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptor_InterceptRequest_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'UrlLoaderInterceptorInterceptRequestResponseParams' |
+ ..fullIdentifier = 'mojo.UrlLoaderInterceptorInterceptRequestResponseParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Response') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_url_loader_interceptor_URLLoaderInterceptorResponse__' |
+ ..typeKey = '_url_loader_interceptor_URLLoaderInterceptorResponse__' |
+ )), |
+ ]; |
+} |
class _UrlLoaderInterceptorInterceptFollowRedirectParams extends bindings.Struct { |
@@ -345,6 +426,13 @@ class _UrlLoaderInterceptorInterceptFollowRedirectParams extends bindings.Struct |
return map; |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptor_InterceptFollowRedirect_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_UrlLoaderInterceptorInterceptFollowRedirectParams' |
+ ..fullIdentifier = 'mojo._UrlLoaderInterceptorInterceptFollowRedirectParams') |
+ ..fields = <mojom_types.StructField>[]; |
+} |
class UrlLoaderInterceptorInterceptFollowRedirectResponseParams extends bindings.Struct { |
@@ -412,6 +500,24 @@ class UrlLoaderInterceptorInterceptFollowRedirectResponseParams extends bindings |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptor_InterceptFollowRedirect_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'UrlLoaderInterceptorInterceptFollowRedirectResponseParams' |
+ ..fullIdentifier = 'mojo.UrlLoaderInterceptorInterceptFollowRedirectResponseParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Response') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..identifier = '_url_loader_interceptor_URLLoaderInterceptorResponse__' |
+ ..typeKey = '_url_loader_interceptor_URLLoaderInterceptorResponse__' |
+ )), |
+ ]; |
+} |
class _UrlLoaderInterceptorInterceptResponseParams extends bindings.Struct { |
@@ -479,6 +585,22 @@ class _UrlLoaderInterceptorInterceptResponseParams extends bindings.Struct { |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptor_InterceptResponse_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_UrlLoaderInterceptorInterceptResponseParams' |
+ ..fullIdentifier = 'mojo._UrlLoaderInterceptorInterceptResponseParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Response') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_url_response_URLResponse__' |
+ ..typeKey = '_url_response_URLResponse__' |
+ )), |
+ ]; |
+} |
class UrlLoaderInterceptorInterceptResponseResponseParams extends bindings.Struct { |
@@ -546,9 +668,53 @@ class UrlLoaderInterceptorInterceptResponseResponseParams extends bindings.Struc |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptor_InterceptResponse_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'UrlLoaderInterceptorInterceptResponseResponseParams' |
+ ..fullIdentifier = 'mojo.UrlLoaderInterceptorInterceptResponseResponseParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Response') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..identifier = '_url_loader_interceptor_URLLoaderInterceptorResponse__' |
+ ..typeKey = '_url_loader_interceptor_URLLoaderInterceptorResponse__' |
+ )), |
+ ]; |
+} |
+ |
const int _UrlLoaderInterceptorFactory_createName = 0; |
+mojom_types.MojomInterface _url_loader_interceptor_URLLoaderInterceptorFactory__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'UrlLoaderInterceptorFactory' |
+ ..fullIdentifier = 'mojo.UrlLoaderInterceptorFactory') |
+ ..interfaceName = 'UrlLoaderInterceptorFactory' |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+_UrlLoaderInterceptorFactory_createName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Create') |
+ ..ordinal = _UrlLoaderInterceptorFactory_createName..parameters = _url_loader_interceptor_URLLoaderInterceptorFactory_Create_Params__(), |
+ }; |
+} |
+ |
+class _UrlLoaderInterceptorFactoryServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) { |
+ return _url_loader_interceptor_URLLoaderInterceptorFactory__(); |
+ } |
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions()[typeKey]; |
+ } |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions(); |
+ } |
+} |
+ |
abstract class UrlLoaderInterceptorFactory { |
static const String serviceName = null; |
void create(Object interceptor); |
@@ -570,6 +736,9 @@ class _UrlLoaderInterceptorFactoryProxyImpl extends bindings.Proxy { |
return new _UrlLoaderInterceptorFactoryProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _UrlLoaderInterceptorFactoryServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -713,12 +882,48 @@ class UrlLoaderInterceptorFactoryStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _UrlLoaderInterceptorFactoryServiceDescription(); |
} |
const int _UrlLoaderInterceptor_interceptRequestName = 0; |
const int _UrlLoaderInterceptor_interceptFollowRedirectName = 1; |
const int _UrlLoaderInterceptor_interceptResponseName = 2; |
+mojom_types.MojomInterface _url_loader_interceptor_URLLoaderInterceptor__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'UrlLoaderInterceptor' |
+ ..fullIdentifier = 'mojo.UrlLoaderInterceptor') |
+ ..interfaceName = 'UrlLoaderInterceptor' |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+_UrlLoaderInterceptor_interceptRequestName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'InterceptRequest') |
+ ..ordinal = _UrlLoaderInterceptor_interceptRequestName |
+ ..responseParams = _url_loader_interceptor_URLLoaderInterceptor_InterceptRequest_ResponseParams__()..parameters = _url_loader_interceptor_URLLoaderInterceptor_InterceptRequest_Params__(),_UrlLoaderInterceptor_interceptFollowRedirectName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'InterceptFollowRedirect') |
+ ..ordinal = _UrlLoaderInterceptor_interceptFollowRedirectName |
+ ..responseParams = _url_loader_interceptor_URLLoaderInterceptor_InterceptFollowRedirect_ResponseParams__()..parameters = _url_loader_interceptor_URLLoaderInterceptor_InterceptFollowRedirect_Params__(),_UrlLoaderInterceptor_interceptResponseName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'InterceptResponse') |
+ ..ordinal = _UrlLoaderInterceptor_interceptResponseName |
+ ..responseParams = _url_loader_interceptor_URLLoaderInterceptor_InterceptResponse_ResponseParams__()..parameters = _url_loader_interceptor_URLLoaderInterceptor_InterceptResponse_Params__(), |
+ }; |
+} |
+ |
+class _UrlLoaderInterceptorServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) { |
+ return _url_loader_interceptor_URLLoaderInterceptor__(); |
+ } |
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions()[typeKey]; |
+ } |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions(); |
+ } |
+} |
+ |
abstract class UrlLoaderInterceptor { |
static const String serviceName = null; |
dynamic interceptRequest(url_request_mojom.UrlRequest request,[Function responseFactory = null]); |
@@ -742,6 +947,9 @@ class _UrlLoaderInterceptorProxyImpl extends bindings.Proxy { |
return new _UrlLoaderInterceptorProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _UrlLoaderInterceptorServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
case _UrlLoaderInterceptor_interceptRequestName: |
@@ -1038,6 +1246,65 @@ class UrlLoaderInterceptorStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _UrlLoaderInterceptorServiceDescription(); |
} |
+ |
+ |
+ |
+ |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new HashMap<String, mojom_types.UserDefinedType>(); |
+map["_url_loader_interceptor_URLLoaderInterceptorResponse__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _url_loader_interceptor_URLLoaderInterceptorResponse__(); |
+map["_url_loader_interceptor_URLLoaderInterceptorFactory_Create_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _url_loader_interceptor_URLLoaderInterceptorFactory_Create_Params__(); |
+map["_url_loader_interceptor_URLLoaderInterceptor_InterceptRequest_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _url_loader_interceptor_URLLoaderInterceptor_InterceptRequest_Params__(); |
+map["_url_loader_interceptor_URLLoaderInterceptor_InterceptRequest_ResponseParams__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _url_loader_interceptor_URLLoaderInterceptor_InterceptRequest_ResponseParams__(); |
+map["_url_loader_interceptor_URLLoaderInterceptor_InterceptFollowRedirect_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _url_loader_interceptor_URLLoaderInterceptor_InterceptFollowRedirect_Params__(); |
+map["_url_loader_interceptor_URLLoaderInterceptor_InterceptFollowRedirect_ResponseParams__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _url_loader_interceptor_URLLoaderInterceptor_InterceptFollowRedirect_ResponseParams__(); |
+map["_url_loader_interceptor_URLLoaderInterceptor_InterceptResponse_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _url_loader_interceptor_URLLoaderInterceptor_InterceptResponse_Params__(); |
+map["_url_loader_interceptor_URLLoaderInterceptor_InterceptResponse_ResponseParams__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _url_loader_interceptor_URLLoaderInterceptor_InterceptResponse_ResponseParams__(); |
+map["_url_loader_interceptor_URLLoaderInterceptorFactory__"] = |
+ new mojom_types.UserDefinedType() |
+ ..interfaceType = _url_loader_interceptor_URLLoaderInterceptorFactory__(); |
+map["_url_loader_interceptor_URLLoaderInterceptor__"] = |
+ new mojom_types.UserDefinedType() |
+ ..interfaceType = _url_loader_interceptor_URLLoaderInterceptor__(); |
+url_request_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) { |
+ map[s] = udt; |
+}); |
+url_response_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; |
+} |
+ |