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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/url_response_disk_cache.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/url_response_disk_cache.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/url_response_disk_cache.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/url_response_disk_cache.mojom.dart
index 0aa5800ce282f31cde697c5f2ed343487cef187c..6abc7bf14d6baa49c29fcd2ac632e7544176bf82 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/url_response_disk_cache.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/url_response_disk_cache.mojom.dart
@@ -5,9 +5,12 @@
library url_response_disk_cache_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_response.mojom.dart' as url_response_mojom;
@@ -77,6 +80,18 @@ class _UrlResponseDiskCacheGetParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _url_response_disk_cache_URLResponseDiskCache_Get_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_UrlResponseDiskCacheGetParams'
+ ..fullIdentifier = 'mojo._UrlResponseDiskCacheGetParams')
+ ..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)),
+ ];
+}
class UrlResponseDiskCacheGetResponseParams extends bindings.Struct {
@@ -160,6 +175,38 @@ class UrlResponseDiskCacheGetResponseParams extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _url_response_disk_cache_URLResponseDiskCache_Get_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'UrlResponseDiskCacheGetResponseParams'
+ ..fullIdentifier = 'mojo.UrlResponseDiskCacheGetResponseParams')
+ ..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_response_URLResponse__'
+ ..typeKey = '_url_response_URLResponse__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'FilePath')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CacheDirPath')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
+ ];
+}
class _UrlResponseDiskCacheValidateParams extends bindings.Struct {
@@ -227,6 +274,18 @@ class _UrlResponseDiskCacheValidateParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _url_response_disk_cache_URLResponseDiskCache_Validate_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_UrlResponseDiskCacheValidateParams'
+ ..fullIdentifier = 'mojo._UrlResponseDiskCacheValidateParams')
+ ..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)),
+ ];
+}
class _UrlResponseDiskCacheUpdateParams extends bindings.Struct {
@@ -294,6 +353,22 @@ class _UrlResponseDiskCacheUpdateParams extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _url_response_disk_cache_URLResponseDiskCache_Update_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_UrlResponseDiskCacheUpdateParams'
+ ..fullIdentifier = 'mojo._UrlResponseDiskCacheUpdateParams')
+ ..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 _UrlResponseDiskCacheUpdateAndGetParams extends bindings.Struct {
@@ -361,6 +436,22 @@ class _UrlResponseDiskCacheUpdateAndGetParams extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _url_response_disk_cache_URLResponseDiskCache_UpdateAndGet_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_UrlResponseDiskCacheUpdateAndGetParams'
+ ..fullIdentifier = 'mojo._UrlResponseDiskCacheUpdateAndGetParams')
+ ..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 UrlResponseDiskCacheUpdateAndGetResponseParams extends bindings.Struct {
@@ -437,6 +528,27 @@ class UrlResponseDiskCacheUpdateAndGetResponseParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _url_response_disk_cache_URLResponseDiskCache_UpdateAndGet_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'UrlResponseDiskCacheUpdateAndGetResponseParams'
+ ..fullIdentifier = 'mojo.UrlResponseDiskCacheUpdateAndGetResponseParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'FilePath')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CacheDirPath')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
+ ];
+}
class _UrlResponseDiskCacheUpdateAndGetExtractedParams extends bindings.Struct {
@@ -504,6 +616,22 @@ class _UrlResponseDiskCacheUpdateAndGetExtractedParams extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _url_response_disk_cache_URLResponseDiskCache_UpdateAndGetExtracted_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_UrlResponseDiskCacheUpdateAndGetExtractedParams'
+ ..fullIdentifier = 'mojo._UrlResponseDiskCacheUpdateAndGetExtractedParams')
+ ..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 UrlResponseDiskCacheUpdateAndGetExtractedResponseParams extends bindings.Struct {
@@ -580,6 +708,28 @@ class UrlResponseDiskCacheUpdateAndGetExtractedResponseParams extends bindings.S
return map;
}
}
+mojom_types.MojomStruct _url_response_disk_cache_URLResponseDiskCache_UpdateAndGetExtracted_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'UrlResponseDiskCacheUpdateAndGetExtractedResponseParams'
+ ..fullIdentifier = 'mojo.UrlResponseDiskCacheUpdateAndGetExtractedResponseParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ExtractedDirPath')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CacheDirPath')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
+ ];
+}
+
const int _UrlResponseDiskCache_getName = 0;
const int _UrlResponseDiskCache_validateName = 1;
@@ -587,6 +737,42 @@ const int _UrlResponseDiskCache_updateName = 2;
const int _UrlResponseDiskCache_updateAndGetName = 3;
const int _UrlResponseDiskCache_updateAndGetExtractedName = 4;
+mojom_types.MojomInterface _url_response_disk_cache_URLResponseDiskCache__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'UrlResponseDiskCache'
+ ..fullIdentifier = 'mojo.UrlResponseDiskCache')
+ ..interfaceName = 'UrlResponseDiskCache'
+ ..methods = <int, mojom_types.MojomMethod>{
+_UrlResponseDiskCache_getName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Get')
+ ..ordinal = _UrlResponseDiskCache_getName
+ ..responseParams = _url_response_disk_cache_URLResponseDiskCache_Get_ResponseParams__()..parameters = _url_response_disk_cache_URLResponseDiskCache_Get_Params__(),_UrlResponseDiskCache_validateName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Validate')
+ ..ordinal = _UrlResponseDiskCache_validateName..parameters = _url_response_disk_cache_URLResponseDiskCache_Validate_Params__(),_UrlResponseDiskCache_updateName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Update')
+ ..ordinal = _UrlResponseDiskCache_updateName..parameters = _url_response_disk_cache_URLResponseDiskCache_Update_Params__(),_UrlResponseDiskCache_updateAndGetName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'UpdateAndGet')
+ ..ordinal = _UrlResponseDiskCache_updateAndGetName
+ ..responseParams = _url_response_disk_cache_URLResponseDiskCache_UpdateAndGet_ResponseParams__()..parameters = _url_response_disk_cache_URLResponseDiskCache_UpdateAndGet_Params__(),_UrlResponseDiskCache_updateAndGetExtractedName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'UpdateAndGetExtracted')
+ ..ordinal = _UrlResponseDiskCache_updateAndGetExtractedName
+ ..responseParams = _url_response_disk_cache_URLResponseDiskCache_UpdateAndGetExtracted_ResponseParams__()..parameters = _url_response_disk_cache_URLResponseDiskCache_UpdateAndGetExtracted_Params__(),
+ };
+}
+
+class _UrlResponseDiskCacheServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _url_response_disk_cache_URLResponseDiskCache__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class UrlResponseDiskCache {
static const String serviceName = "mojo::URLResponseDiskCache";
dynamic get(String url,[Function responseFactory = null]);
@@ -612,6 +798,9 @@ class _UrlResponseDiskCacheProxyImpl extends bindings.Proxy {
return new _UrlResponseDiskCacheProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _UrlResponseDiskCacheServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _UrlResponseDiskCache_getName:
@@ -941,6 +1130,59 @@ class UrlResponseDiskCacheStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _UrlResponseDiskCacheServiceDescription();
}
+
+
+
+
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new HashMap<String, mojom_types.UserDefinedType>();
+map["_url_response_disk_cache_URLResponseDiskCache_Get_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _url_response_disk_cache_URLResponseDiskCache_Get_Params__();
+map["_url_response_disk_cache_URLResponseDiskCache_Get_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _url_response_disk_cache_URLResponseDiskCache_Get_ResponseParams__();
+map["_url_response_disk_cache_URLResponseDiskCache_Validate_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _url_response_disk_cache_URLResponseDiskCache_Validate_Params__();
+map["_url_response_disk_cache_URLResponseDiskCache_Update_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _url_response_disk_cache_URLResponseDiskCache_Update_Params__();
+map["_url_response_disk_cache_URLResponseDiskCache_UpdateAndGet_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _url_response_disk_cache_URLResponseDiskCache_UpdateAndGet_Params__();
+map["_url_response_disk_cache_URLResponseDiskCache_UpdateAndGet_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _url_response_disk_cache_URLResponseDiskCache_UpdateAndGet_ResponseParams__();
+map["_url_response_disk_cache_URLResponseDiskCache_UpdateAndGetExtracted_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _url_response_disk_cache_URLResponseDiskCache_UpdateAndGetExtracted_Params__();
+map["_url_response_disk_cache_URLResponseDiskCache_UpdateAndGetExtracted_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _url_response_disk_cache_URLResponseDiskCache_UpdateAndGetExtracted_ResponseParams__();
+map["_url_response_disk_cache_URLResponseDiskCache__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _url_response_disk_cache_URLResponseDiskCache__();
+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;
+}
+

Powered by Google App Engine
This is Rietveld 408576698