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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/url_response_disk_cache.mojom.dart

Issue 1753013002: Mojom runtime type info: New implementation for Dart. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: No changes to sha1s Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 library url_response_disk_cache_mojom; 5 library url_response_disk_cache_mojom;
6 import 'dart:async'; 6 import 'dart:async';
7 import 'package:mojo/bindings.dart' as bindings; 7 import 'package:mojo/bindings.dart' as bindings;
8 import 'package:mojo/core.dart' as core; 8 import 'package:mojo/core.dart' as core;
9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer; 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer;
10 import 'package:mojo/mojo/url_response.mojom.dart' as url_response_mojom; 10 import 'package:mojo/mojo/url_response.mojom.dart' as url_response_mojom;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 Map toJson() { 78 Map toJson() {
79 Map map = new Map(); 79 Map map = new Map();
80 map["url"] = url; 80 map["url"] = url;
81 return map; 81 return map;
82 } 82 }
83 } 83 }
84 84
85 85
86
87
88 class UrlResponseDiskCacheGetResponseParams extends bindings.Struct { 86 class UrlResponseDiskCacheGetResponseParams extends bindings.Struct {
89 static const List<bindings.StructDataHeader> kVersions = const [ 87 static const List<bindings.StructDataHeader> kVersions = const [
90 const bindings.StructDataHeader(32, 0) 88 const bindings.StructDataHeader(32, 0)
91 ]; 89 ];
92 url_response_mojom.UrlResponse response = null; 90 url_response_mojom.UrlResponse response = null;
93 List<int> filePath = null; 91 List<int> filePath = null;
94 List<int> cacheDirPath = null; 92 List<int> cacheDirPath = null;
95 93
96 UrlResponseDiskCacheGetResponseParams() : super(kVersions.last.size); 94 UrlResponseDiskCacheGetResponseParams() : super(kVersions.last.size);
97 95
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 "cacheDirPath: $cacheDirPath" ")"; 174 "cacheDirPath: $cacheDirPath" ")";
177 } 175 }
178 176
179 Map toJson() { 177 Map toJson() {
180 throw new bindings.MojoCodecError( 178 throw new bindings.MojoCodecError(
181 'Object containing handles cannot be encoded to JSON.'); 179 'Object containing handles cannot be encoded to JSON.');
182 } 180 }
183 } 181 }
184 182
185 183
186
187
188 class _UrlResponseDiskCacheValidateParams extends bindings.Struct { 184 class _UrlResponseDiskCacheValidateParams extends bindings.Struct {
189 static const List<bindings.StructDataHeader> kVersions = const [ 185 static const List<bindings.StructDataHeader> kVersions = const [
190 const bindings.StructDataHeader(16, 0) 186 const bindings.StructDataHeader(16, 0)
191 ]; 187 ];
192 String url = null; 188 String url = null;
193 189
194 _UrlResponseDiskCacheValidateParams() : super(kVersions.last.size); 190 _UrlResponseDiskCacheValidateParams() : super(kVersions.last.size);
195 191
196 static _UrlResponseDiskCacheValidateParams deserialize(bindings.Message messag e) { 192 static _UrlResponseDiskCacheValidateParams deserialize(bindings.Message messag e) {
197 var decoder = new bindings.Decoder(message); 193 var decoder = new bindings.Decoder(message);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 } 246 }
251 247
252 Map toJson() { 248 Map toJson() {
253 Map map = new Map(); 249 Map map = new Map();
254 map["url"] = url; 250 map["url"] = url;
255 return map; 251 return map;
256 } 252 }
257 } 253 }
258 254
259 255
260
261
262 class _UrlResponseDiskCacheUpdateParams extends bindings.Struct { 256 class _UrlResponseDiskCacheUpdateParams extends bindings.Struct {
263 static const List<bindings.StructDataHeader> kVersions = const [ 257 static const List<bindings.StructDataHeader> kVersions = const [
264 const bindings.StructDataHeader(16, 0) 258 const bindings.StructDataHeader(16, 0)
265 ]; 259 ];
266 url_response_mojom.UrlResponse response = null; 260 url_response_mojom.UrlResponse response = null;
267 261
268 _UrlResponseDiskCacheUpdateParams() : super(kVersions.last.size); 262 _UrlResponseDiskCacheUpdateParams() : super(kVersions.last.size);
269 263
270 static _UrlResponseDiskCacheUpdateParams deserialize(bindings.Message message) { 264 static _UrlResponseDiskCacheUpdateParams deserialize(bindings.Message message) {
271 var decoder = new bindings.Decoder(message); 265 var decoder = new bindings.Decoder(message);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 "response: $response" ")"; 318 "response: $response" ")";
325 } 319 }
326 320
327 Map toJson() { 321 Map toJson() {
328 throw new bindings.MojoCodecError( 322 throw new bindings.MojoCodecError(
329 'Object containing handles cannot be encoded to JSON.'); 323 'Object containing handles cannot be encoded to JSON.');
330 } 324 }
331 } 325 }
332 326
333 327
334
335
336 class _UrlResponseDiskCacheUpdateAndGetParams extends bindings.Struct { 328 class _UrlResponseDiskCacheUpdateAndGetParams extends bindings.Struct {
337 static const List<bindings.StructDataHeader> kVersions = const [ 329 static const List<bindings.StructDataHeader> kVersions = const [
338 const bindings.StructDataHeader(16, 0) 330 const bindings.StructDataHeader(16, 0)
339 ]; 331 ];
340 url_response_mojom.UrlResponse response = null; 332 url_response_mojom.UrlResponse response = null;
341 333
342 _UrlResponseDiskCacheUpdateAndGetParams() : super(kVersions.last.size); 334 _UrlResponseDiskCacheUpdateAndGetParams() : super(kVersions.last.size);
343 335
344 static _UrlResponseDiskCacheUpdateAndGetParams deserialize(bindings.Message me ssage) { 336 static _UrlResponseDiskCacheUpdateAndGetParams deserialize(bindings.Message me ssage) {
345 var decoder = new bindings.Decoder(message); 337 var decoder = new bindings.Decoder(message);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 "response: $response" ")"; 390 "response: $response" ")";
399 } 391 }
400 392
401 Map toJson() { 393 Map toJson() {
402 throw new bindings.MojoCodecError( 394 throw new bindings.MojoCodecError(
403 'Object containing handles cannot be encoded to JSON.'); 395 'Object containing handles cannot be encoded to JSON.');
404 } 396 }
405 } 397 }
406 398
407 399
408
409
410 class UrlResponseDiskCacheUpdateAndGetResponseParams extends bindings.Struct { 400 class UrlResponseDiskCacheUpdateAndGetResponseParams extends bindings.Struct {
411 static const List<bindings.StructDataHeader> kVersions = const [ 401 static const List<bindings.StructDataHeader> kVersions = const [
412 const bindings.StructDataHeader(24, 0) 402 const bindings.StructDataHeader(24, 0)
413 ]; 403 ];
414 List<int> filePath = null; 404 List<int> filePath = null;
415 List<int> cacheDirPath = null; 405 List<int> cacheDirPath = null;
416 406
417 UrlResponseDiskCacheUpdateAndGetResponseParams() : super(kVersions.last.size); 407 UrlResponseDiskCacheUpdateAndGetResponseParams() : super(kVersions.last.size);
418 408
419 static UrlResponseDiskCacheUpdateAndGetResponseParams deserialize(bindings.Mes sage message) { 409 static UrlResponseDiskCacheUpdateAndGetResponseParams deserialize(bindings.Mes sage message) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 476
487 Map toJson() { 477 Map toJson() {
488 Map map = new Map(); 478 Map map = new Map();
489 map["filePath"] = filePath; 479 map["filePath"] = filePath;
490 map["cacheDirPath"] = cacheDirPath; 480 map["cacheDirPath"] = cacheDirPath;
491 return map; 481 return map;
492 } 482 }
493 } 483 }
494 484
495 485
496
497
498 class _UrlResponseDiskCacheUpdateAndGetExtractedParams extends bindings.Struct { 486 class _UrlResponseDiskCacheUpdateAndGetExtractedParams extends bindings.Struct {
499 static const List<bindings.StructDataHeader> kVersions = const [ 487 static const List<bindings.StructDataHeader> kVersions = const [
500 const bindings.StructDataHeader(16, 0) 488 const bindings.StructDataHeader(16, 0)
501 ]; 489 ];
502 url_response_mojom.UrlResponse response = null; 490 url_response_mojom.UrlResponse response = null;
503 491
504 _UrlResponseDiskCacheUpdateAndGetExtractedParams() : super(kVersions.last.size ); 492 _UrlResponseDiskCacheUpdateAndGetExtractedParams() : super(kVersions.last.size );
505 493
506 static _UrlResponseDiskCacheUpdateAndGetExtractedParams deserialize(bindings.M essage message) { 494 static _UrlResponseDiskCacheUpdateAndGetExtractedParams deserialize(bindings.M essage message) {
507 var decoder = new bindings.Decoder(message); 495 var decoder = new bindings.Decoder(message);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 "response: $response" ")"; 548 "response: $response" ")";
561 } 549 }
562 550
563 Map toJson() { 551 Map toJson() {
564 throw new bindings.MojoCodecError( 552 throw new bindings.MojoCodecError(
565 'Object containing handles cannot be encoded to JSON.'); 553 'Object containing handles cannot be encoded to JSON.');
566 } 554 }
567 } 555 }
568 556
569 557
570
571
572 class UrlResponseDiskCacheUpdateAndGetExtractedResponseParams extends bindings.S truct { 558 class UrlResponseDiskCacheUpdateAndGetExtractedResponseParams extends bindings.S truct {
573 static const List<bindings.StructDataHeader> kVersions = const [ 559 static const List<bindings.StructDataHeader> kVersions = const [
574 const bindings.StructDataHeader(24, 0) 560 const bindings.StructDataHeader(24, 0)
575 ]; 561 ];
576 List<int> extractedDirPath = null; 562 List<int> extractedDirPath = null;
577 List<int> cacheDirPath = null; 563 List<int> cacheDirPath = null;
578 564
579 UrlResponseDiskCacheUpdateAndGetExtractedResponseParams() : super(kVersions.la st.size); 565 UrlResponseDiskCacheUpdateAndGetExtractedResponseParams() : super(kVersions.la st.size);
580 566
581 static UrlResponseDiskCacheUpdateAndGetExtractedResponseParams deserialize(bin dings.Message message) { 567 static UrlResponseDiskCacheUpdateAndGetExtractedResponseParams deserialize(bin dings.Message message) {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 } 633 }
648 634
649 Map toJson() { 635 Map toJson() {
650 Map map = new Map(); 636 Map map = new Map();
651 map["extractedDirPath"] = extractedDirPath; 637 map["extractedDirPath"] = extractedDirPath;
652 map["cacheDirPath"] = cacheDirPath; 638 map["cacheDirPath"] = cacheDirPath;
653 return map; 639 return map;
654 } 640 }
655 } 641 }
656 642
657
658
659
660 const int _UrlResponseDiskCache_getName = 0; 643 const int _UrlResponseDiskCache_getName = 0;
661 const int _UrlResponseDiskCache_validateName = 1; 644 const int _UrlResponseDiskCache_validateName = 1;
662 const int _UrlResponseDiskCache_updateName = 2; 645 const int _UrlResponseDiskCache_updateName = 2;
663 const int _UrlResponseDiskCache_updateAndGetName = 3; 646 const int _UrlResponseDiskCache_updateAndGetName = 3;
664 const int _UrlResponseDiskCache_updateAndGetExtractedName = 4; 647 const int _UrlResponseDiskCache_updateAndGetExtractedName = 4;
665 648
666
667
668 class _UrlResponseDiskCacheServiceDescription implements service_describer.Servi ceDescription { 649 class _UrlResponseDiskCacheServiceDescription implements service_describer.Servi ceDescription {
669 dynamic getTopLevelInterface([Function responseFactory]) => 650 dynamic getTopLevelInterface([Function responseFactory]) =>
670 responseFactory(null); 651 responseFactory(null);
671 652
672 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 653 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
673 responseFactory(null); 654 responseFactory(null);
674 655
675 dynamic getAllTypeDefinitions([Function responseFactory]) => 656 dynamic getAllTypeDefinitions([Function responseFactory]) =>
676 responseFactory(null); 657 responseFactory(null);
677 } 658 }
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 static service_describer.ServiceDescription get serviceDescription { 1019 static service_describer.ServiceDescription get serviceDescription {
1039 if (_cachedServiceDescription == null) { 1020 if (_cachedServiceDescription == null) {
1040 _cachedServiceDescription = new _UrlResponseDiskCacheServiceDescription(); 1021 _cachedServiceDescription = new _UrlResponseDiskCacheServiceDescription();
1041 } 1022 }
1042 return _cachedServiceDescription; 1023 return _cachedServiceDescription;
1043 } 1024 }
1044 } 1025 }
1045 1026
1046 1027
1047 1028
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698