Index: mojo/dart/packages/mojo/lib/mojo/url_request.mojom.dart |
diff --git a/mojo/dart/packages/mojo/lib/mojo/url_request.mojom.dart b/mojo/dart/packages/mojo/lib/mojo/url_request.mojom.dart |
index 0554e5f891c97fcc7723f956407fcddf4a28d851..20303dca10ef60d7263d3b237f57a7ece74e4c96 100644 |
--- a/mojo/dart/packages/mojo/lib/mojo/url_request.mojom.dart |
+++ b/mojo/dart/packages/mojo/lib/mojo/url_request.mojom.dart |
@@ -5,11 +5,13 @@ |
library url_request_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/http_header.mojom.dart' as http_header_mojom; |
+import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
+import 'package:mojo/mojo/http_header.mojom.dart' as http_header_mojom; |
class UrlRequestCacheMode extends bindings.MojoEnum { |
@@ -63,12 +65,31 @@ class UrlRequestCacheMode extends bindings.MojoEnum { |
return 'UrlRequestCacheMode.bypassCache'; |
case onlyFromCache: |
return 'UrlRequestCacheMode.onlyFromCache'; |
+ default: |
+ return null; |
} |
} |
int toJson() => mojoEnumValue; |
} |
+mojom_types.MojomEnum _url_request_CacheMode__() { |
+ return new mojom_types.MojomEnum() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'UrlRequestCacheMode' |
+ ..fullIdentifier = 'mojo.UrlRequestCacheMode') |
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Default') |
+ ..enumTypeKey = '_url_request_CacheMode__' |
+ ..intValue = 0,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'BypassCache') |
+ ..enumTypeKey = '_url_request_CacheMode__' |
+ ..intValue = 1,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'OnlyFromCache') |
+ ..enumTypeKey = '_url_request_CacheMode__' |
+ ..intValue = 2,]; |
+} |
+ |
class UrlRequest extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(56, 0) |
@@ -204,5 +225,90 @@ class UrlRequest extends bindings.Struct { |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _url_request_URLRequest__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'UrlRequest' |
+ ..fullIdentifier = 'mojo.UrlRequest') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Url') |
+ ..type = (new mojom_types.Type() |
+..stringType = (new mojom_types.StringType()..nullable = false)), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method') |
+ ..type = (new mojom_types.Type() |
+..stringType = (new mojom_types.StringType()..nullable = false)), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Headers') |
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType() |
+ ..nullable = true |
+ |
+ ..elementType = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_http_header_HttpHeader__' |
+ ..typeKey = '_http_header_HttpHeader__' |
+ )))), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Body') |
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType() |
+ ..nullable = true |
+ |
+ ..elementType = (new mojom_types.Type() |
+..handleType = (new mojom_types.HandleType() |
+..kind = mojom_types.HandleTypeKind.dataPipeConsumer |
+..nullable = false)))), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ResponseBodyBufferSize') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'AutoFollowRedirects') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CacheMode') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_url_request_CacheMode__' |
+ ..typeKey = '_url_request_CacheMode__' |
+ )), |
+ ]; |
+} |
+ |
+ |
+ |
+ |
+ |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new HashMap<String, mojom_types.UserDefinedType>(); |
+map["_url_request_URLRequest__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _url_request_URLRequest__(); |
+ map["_url_request_CacheMode__"] = |
+ new mojom_types.UserDefinedType() |
+ ..enumType = _url_request_CacheMode__(); |
+http_header_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; |
+} |
+ |