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 7ae9904923e5aa79b5b0fb1246219175d8db50d0..311a511cd68c8c4c3a2c03a5c6a922f5f0fc36a9 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 |
@@ -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/mojo/url_request.mojom.dart' as url_request_mojom; |
import 'package:mojo/mojo/url_response.mojom.dart' as url_response_mojom; |
@@ -88,6 +90,34 @@ class UrlLoaderInterceptorResponse extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptorResponse__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -154,6 +184,22 @@ class UrlLoaderInterceptorFactoryCreateParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptorFactory_Create_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -221,6 +267,21 @@ class UrlLoaderInterceptorInterceptRequestParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptor_InterceptRequest_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -288,6 +349,21 @@ class UrlLoaderInterceptorInterceptRequestResponseParams extends bindings.Struct |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptor_InterceptRequest_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -346,6 +422,12 @@ class UrlLoaderInterceptorInterceptFollowRedirectParams extends bindings.Struct |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptor_InterceptFollowRedirect_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'UrlLoaderInterceptorInterceptFollowRedirectParams') |
+ ..fields = <mojom_types.StructField>[]; |
+} |
+ |
class UrlLoaderInterceptorInterceptFollowRedirectResponseParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -413,6 +495,23 @@ class UrlLoaderInterceptorInterceptFollowRedirectResponseParams extends bindings |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptor_InterceptFollowRedirect_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -480,6 +579,21 @@ class UrlLoaderInterceptorInterceptResponseParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptor_InterceptResponse_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -547,11 +661,54 @@ class UrlLoaderInterceptorInterceptResponseResponseParams extends bindings.Struc |
} |
} |
+mojom_types.MojomStruct _url_loader_interceptor_URLLoaderInterceptor_InterceptResponse_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 kUrlLoaderInterceptorFactory_create_name = 0; |
const String UrlLoaderInterceptorFactoryName = |
'mojo::URLLoaderInterceptorFactory'; |
+mojom_types.MojomInterface _url_loader_interceptor_URLLoaderInterceptorFactory__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "UrlLoaderInterceptorFactory") |
+ ..interfaceName = "UrlLoaderInterceptorFactory" |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+kUrlLoaderInterceptorFactory_create_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Create") |
+ ..ordinal = kUrlLoaderInterceptorFactory_create_name..parameters = _url_loader_interceptor_URLLoaderInterceptorFactory_Create_Params__(), |
+ }; |
+} |
+ |
+class _UrlLoaderInterceptorFactoryServiceDescription extends service_describer.ServiceDescription { |
+ // Avoid infinite loop by overriding serviceDescription field. |
+ final service_describer.ServiceDescription serviceDescription = null; |
+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 { |
void create(Object interceptor); |
@@ -575,6 +732,9 @@ class UrlLoaderInterceptorFactoryProxyImpl extends bindings.Proxy { |
String get name => UrlLoaderInterceptorFactoryName; |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _UrlLoaderInterceptorFactoryServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -720,6 +880,9 @@ class UrlLoaderInterceptorFactoryStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _UrlLoaderInterceptorFactoryServiceDescription(); |
} |
const int kUrlLoaderInterceptor_interceptRequest_name = 0; |
@@ -729,6 +892,38 @@ const int kUrlLoaderInterceptor_interceptResponse_name = 2; |
const String UrlLoaderInterceptorName = |
'mojo::URLLoaderInterceptor'; |
+mojom_types.MojomInterface _url_loader_interceptor_URLLoaderInterceptor__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "UrlLoaderInterceptor") |
+ ..interfaceName = "UrlLoaderInterceptor" |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+kUrlLoaderInterceptor_interceptRequest_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "InterceptRequest") |
+ ..ordinal = kUrlLoaderInterceptor_interceptRequest_name |
+ ..responseParams = _url_loader_interceptor_URLLoaderInterceptor_InterceptRequest_ResponseParams__()..parameters = _url_loader_interceptor_URLLoaderInterceptor_InterceptRequest_Params__(),kUrlLoaderInterceptor_interceptFollowRedirect_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "InterceptFollowRedirect") |
+ ..ordinal = kUrlLoaderInterceptor_interceptFollowRedirect_name |
+ ..responseParams = _url_loader_interceptor_URLLoaderInterceptor_InterceptFollowRedirect_ResponseParams__()..parameters = _url_loader_interceptor_URLLoaderInterceptor_InterceptFollowRedirect_Params__(),kUrlLoaderInterceptor_interceptResponse_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "InterceptResponse") |
+ ..ordinal = kUrlLoaderInterceptor_interceptResponse_name |
+ ..responseParams = _url_loader_interceptor_URLLoaderInterceptor_InterceptResponse_ResponseParams__()..parameters = _url_loader_interceptor_URLLoaderInterceptor_InterceptResponse_Params__(), |
+ }; |
+} |
+ |
+class _UrlLoaderInterceptorServiceDescription extends service_describer.ServiceDescription { |
+ // Avoid infinite loop by overriding serviceDescription field. |
+ final service_describer.ServiceDescription serviceDescription = null; |
+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 { |
dynamic interceptRequest(url_request_mojom.UrlRequest request,[Function responseFactory = null]); |
dynamic interceptFollowRedirect([Function responseFactory = null]); |
@@ -754,6 +949,9 @@ class UrlLoaderInterceptorProxyImpl extends bindings.Proxy { |
String get name => UrlLoaderInterceptorName; |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _UrlLoaderInterceptorServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
case kUrlLoaderInterceptor_interceptRequest_name: |
@@ -1051,6 +1249,103 @@ class UrlLoaderInterceptorStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _UrlLoaderInterceptorServiceDescription(); |
+} |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+var _MojomDesc__ = _initDescriptions(); |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new Map<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__(); |
+ |
+ |
+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; |
+} |
+ |
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
+ return _MojomDesc__; |
} |