| 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..624e3e206c21958b9abf64dd26dec25d2739c53a 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
|
| @@ -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/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;
|
|
|
|
|
| @@ -79,6 +81,8 @@ class _UrlResponseDiskCacheGetParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class UrlResponseDiskCacheGetResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(32, 0)
|
| @@ -162,6 +166,8 @@ class UrlResponseDiskCacheGetResponseParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _UrlResponseDiskCacheValidateParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -229,6 +235,8 @@ class _UrlResponseDiskCacheValidateParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _UrlResponseDiskCacheUpdateParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -296,6 +304,8 @@ class _UrlResponseDiskCacheUpdateParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _UrlResponseDiskCacheUpdateAndGetParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -363,6 +373,8 @@ class _UrlResponseDiskCacheUpdateAndGetParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class UrlResponseDiskCacheUpdateAndGetResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -439,6 +451,8 @@ class UrlResponseDiskCacheUpdateAndGetResponseParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _UrlResponseDiskCacheUpdateAndGetExtractedParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -506,6 +520,8 @@ class _UrlResponseDiskCacheUpdateAndGetExtractedParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class UrlResponseDiskCacheUpdateAndGetExtractedResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(24, 0)
|
| @@ -581,12 +597,25 @@ class UrlResponseDiskCacheUpdateAndGetExtractedResponseParams extends bindings.S
|
| }
|
| }
|
|
|
| +
|
| +
|
| +
|
| const int _UrlResponseDiskCache_getName = 0;
|
| const int _UrlResponseDiskCache_validateName = 1;
|
| const int _UrlResponseDiskCache_updateName = 2;
|
| const int _UrlResponseDiskCache_updateAndGetName = 3;
|
| const int _UrlResponseDiskCache_updateAndGetExtractedName = 4;
|
|
|
| +
|
| +
|
| +class _UrlResponseDiskCacheServiceDescription implements service_describer.ServiceDescription {
|
| + dynamic getTopLevelInterface([Function responseFactory]) => null;
|
| +
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
|
| +
|
| + dynamic getAllTypeDefinitions([Function responseFactory]) => null;
|
| +}
|
| +
|
| abstract class UrlResponseDiskCache {
|
| static const String serviceName = "mojo::URLResponseDiskCache";
|
| dynamic get(String url,[Function responseFactory = null]);
|
| @@ -612,6 +641,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 +973,10 @@ class UrlResponseDiskCacheStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _UrlResponseDiskCacheServiceDescription();
|
| }
|
|
|
|
|
| +
|
|
|