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

Unified Diff: mojo/dart/packages/mojo/lib/mojo/url_request.mojom.dart

Issue 1433183002: Generate Mojom Types for Dart (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Simplify identifier_store for Go and Dart Created 5 years, 1 month 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/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 bb6e19961da17886c46c8d5bf2399d97dee6aea3..4ee80389361fbbe6d4d8dff1cc61cc80ada9e408 100644
--- a/mojo/dart/packages/mojo/lib/mojo/url_request.mojom.dart
+++ b/mojo/dart/packages/mojo/lib/mojo/url_request.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/http_header.mojom.dart' as http_header_mojom;
@@ -62,12 +64,29 @@ class UrlRequestCacheMode extends bindings.MojoEnum {
return 'UrlRequestCacheMode.BYPASS_CACHE';
case ONLY_FROM_CACHE:
return 'UrlRequestCacheMode.ONLY_FROM_CACHE';
+ default:
+ return null;
}
}
int toJson() => value;
}
+mojom_types.MojomEnum _url_request_CacheMode__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "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 = "BYPASS_CACHE")
+ ..enumTypeKey = '_url_request_CacheMode__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "ONLY_FROM_CACHE")
+ ..enumTypeKey = '_url_request_CacheMode__'
+ ..intValue = 2,];
+}
+
class UrlRequest extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(56, 0)
@@ -204,4 +223,105 @@ class UrlRequest extends bindings.Struct {
}
}
+mojom_types.MojomStruct _url_request_URLRequest__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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.DATA_PIPE_CONSUMER
+..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__'
+ )),
+ ];
+}
+
+
+
+
+
+
+
+
+
+var _MojomDesc__ = _initDescriptions();
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new Map<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;
+}
+
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ return _MojomDesc__;
+}
+

Powered by Google App Engine
This is Rietveld 408576698