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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/url_loader_interceptor.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_loader_interceptor_mojom; 5 library url_loader_interceptor_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_request.mojom.dart' as url_request_mojom; 10 import 'package:mojo/mojo/url_request.mojom.dart' as url_request_mojom;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 "response: $response" ")"; 91 "response: $response" ")";
92 } 92 }
93 93
94 Map toJson() { 94 Map toJson() {
95 throw new bindings.MojoCodecError( 95 throw new bindings.MojoCodecError(
96 'Object containing handles cannot be encoded to JSON.'); 96 'Object containing handles cannot be encoded to JSON.');
97 } 97 }
98 } 98 }
99 99
100 100
101
102
103 class _UrlLoaderInterceptorFactoryCreateParams extends bindings.Struct { 101 class _UrlLoaderInterceptorFactoryCreateParams extends bindings.Struct {
104 static const List<bindings.StructDataHeader> kVersions = const [ 102 static const List<bindings.StructDataHeader> kVersions = const [
105 const bindings.StructDataHeader(16, 0) 103 const bindings.StructDataHeader(16, 0)
106 ]; 104 ];
107 Object interceptor = null; 105 Object interceptor = null;
108 106
109 _UrlLoaderInterceptorFactoryCreateParams() : super(kVersions.last.size); 107 _UrlLoaderInterceptorFactoryCreateParams() : super(kVersions.last.size);
110 108
111 static _UrlLoaderInterceptorFactoryCreateParams deserialize(bindings.Message m essage) { 109 static _UrlLoaderInterceptorFactoryCreateParams deserialize(bindings.Message m essage) {
112 var decoder = new bindings.Decoder(message); 110 var decoder = new bindings.Decoder(message);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 "interceptor: $interceptor" ")"; 162 "interceptor: $interceptor" ")";
165 } 163 }
166 164
167 Map toJson() { 165 Map toJson() {
168 throw new bindings.MojoCodecError( 166 throw new bindings.MojoCodecError(
169 'Object containing handles cannot be encoded to JSON.'); 167 'Object containing handles cannot be encoded to JSON.');
170 } 168 }
171 } 169 }
172 170
173 171
174
175
176 class _UrlLoaderInterceptorInterceptRequestParams extends bindings.Struct { 172 class _UrlLoaderInterceptorInterceptRequestParams extends bindings.Struct {
177 static const List<bindings.StructDataHeader> kVersions = const [ 173 static const List<bindings.StructDataHeader> kVersions = const [
178 const bindings.StructDataHeader(16, 0) 174 const bindings.StructDataHeader(16, 0)
179 ]; 175 ];
180 url_request_mojom.UrlRequest request = null; 176 url_request_mojom.UrlRequest request = null;
181 177
182 _UrlLoaderInterceptorInterceptRequestParams() : super(kVersions.last.size); 178 _UrlLoaderInterceptorInterceptRequestParams() : super(kVersions.last.size);
183 179
184 static _UrlLoaderInterceptorInterceptRequestParams deserialize(bindings.Messag e message) { 180 static _UrlLoaderInterceptorInterceptRequestParams deserialize(bindings.Messag e message) {
185 var decoder = new bindings.Decoder(message); 181 var decoder = new bindings.Decoder(message);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 "request: $request" ")"; 234 "request: $request" ")";
239 } 235 }
240 236
241 Map toJson() { 237 Map toJson() {
242 throw new bindings.MojoCodecError( 238 throw new bindings.MojoCodecError(
243 'Object containing handles cannot be encoded to JSON.'); 239 'Object containing handles cannot be encoded to JSON.');
244 } 240 }
245 } 241 }
246 242
247 243
248
249
250 class UrlLoaderInterceptorInterceptRequestResponseParams extends bindings.Struct { 244 class UrlLoaderInterceptorInterceptRequestResponseParams extends bindings.Struct {
251 static const List<bindings.StructDataHeader> kVersions = const [ 245 static const List<bindings.StructDataHeader> kVersions = const [
252 const bindings.StructDataHeader(16, 0) 246 const bindings.StructDataHeader(16, 0)
253 ]; 247 ];
254 UrlLoaderInterceptorResponse response = null; 248 UrlLoaderInterceptorResponse response = null;
255 249
256 UrlLoaderInterceptorInterceptRequestResponseParams() : super(kVersions.last.si ze); 250 UrlLoaderInterceptorInterceptRequestResponseParams() : super(kVersions.last.si ze);
257 251
258 static UrlLoaderInterceptorInterceptRequestResponseParams deserialize(bindings .Message message) { 252 static UrlLoaderInterceptorInterceptRequestResponseParams deserialize(bindings .Message message) {
259 var decoder = new bindings.Decoder(message); 253 var decoder = new bindings.Decoder(message);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 "response: $response" ")"; 306 "response: $response" ")";
313 } 307 }
314 308
315 Map toJson() { 309 Map toJson() {
316 throw new bindings.MojoCodecError( 310 throw new bindings.MojoCodecError(
317 'Object containing handles cannot be encoded to JSON.'); 311 'Object containing handles cannot be encoded to JSON.');
318 } 312 }
319 } 313 }
320 314
321 315
322
323
324 class _UrlLoaderInterceptorInterceptFollowRedirectParams extends bindings.Struct { 316 class _UrlLoaderInterceptorInterceptFollowRedirectParams extends bindings.Struct {
325 static const List<bindings.StructDataHeader> kVersions = const [ 317 static const List<bindings.StructDataHeader> kVersions = const [
326 const bindings.StructDataHeader(8, 0) 318 const bindings.StructDataHeader(8, 0)
327 ]; 319 ];
328 320
329 _UrlLoaderInterceptorInterceptFollowRedirectParams() : super(kVersions.last.si ze); 321 _UrlLoaderInterceptorInterceptFollowRedirectParams() : super(kVersions.last.si ze);
330 322
331 static _UrlLoaderInterceptorInterceptFollowRedirectParams deserialize(bindings .Message message) { 323 static _UrlLoaderInterceptorInterceptFollowRedirectParams deserialize(bindings .Message message) {
332 var decoder = new bindings.Decoder(message); 324 var decoder = new bindings.Decoder(message);
333 var result = decode(decoder); 325 var result = decode(decoder);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 return "_UrlLoaderInterceptorInterceptFollowRedirectParams("")"; 364 return "_UrlLoaderInterceptorInterceptFollowRedirectParams("")";
373 } 365 }
374 366
375 Map toJson() { 367 Map toJson() {
376 Map map = new Map(); 368 Map map = new Map();
377 return map; 369 return map;
378 } 370 }
379 } 371 }
380 372
381 373
382
383
384 class UrlLoaderInterceptorInterceptFollowRedirectResponseParams extends bindings .Struct { 374 class UrlLoaderInterceptorInterceptFollowRedirectResponseParams extends bindings .Struct {
385 static const List<bindings.StructDataHeader> kVersions = const [ 375 static const List<bindings.StructDataHeader> kVersions = const [
386 const bindings.StructDataHeader(16, 0) 376 const bindings.StructDataHeader(16, 0)
387 ]; 377 ];
388 UrlLoaderInterceptorResponse response = null; 378 UrlLoaderInterceptorResponse response = null;
389 379
390 UrlLoaderInterceptorInterceptFollowRedirectResponseParams() : super(kVersions. last.size); 380 UrlLoaderInterceptorInterceptFollowRedirectResponseParams() : super(kVersions. last.size);
391 381
392 static UrlLoaderInterceptorInterceptFollowRedirectResponseParams deserialize(b indings.Message message) { 382 static UrlLoaderInterceptorInterceptFollowRedirectResponseParams deserialize(b indings.Message message) {
393 var decoder = new bindings.Decoder(message); 383 var decoder = new bindings.Decoder(message);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 "response: $response" ")"; 436 "response: $response" ")";
447 } 437 }
448 438
449 Map toJson() { 439 Map toJson() {
450 throw new bindings.MojoCodecError( 440 throw new bindings.MojoCodecError(
451 'Object containing handles cannot be encoded to JSON.'); 441 'Object containing handles cannot be encoded to JSON.');
452 } 442 }
453 } 443 }
454 444
455 445
456
457
458 class _UrlLoaderInterceptorInterceptResponseParams extends bindings.Struct { 446 class _UrlLoaderInterceptorInterceptResponseParams extends bindings.Struct {
459 static const List<bindings.StructDataHeader> kVersions = const [ 447 static const List<bindings.StructDataHeader> kVersions = const [
460 const bindings.StructDataHeader(16, 0) 448 const bindings.StructDataHeader(16, 0)
461 ]; 449 ];
462 url_response_mojom.UrlResponse response = null; 450 url_response_mojom.UrlResponse response = null;
463 451
464 _UrlLoaderInterceptorInterceptResponseParams() : super(kVersions.last.size); 452 _UrlLoaderInterceptorInterceptResponseParams() : super(kVersions.last.size);
465 453
466 static _UrlLoaderInterceptorInterceptResponseParams deserialize(bindings.Messa ge message) { 454 static _UrlLoaderInterceptorInterceptResponseParams deserialize(bindings.Messa ge message) {
467 var decoder = new bindings.Decoder(message); 455 var decoder = new bindings.Decoder(message);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 "response: $response" ")"; 508 "response: $response" ")";
521 } 509 }
522 510
523 Map toJson() { 511 Map toJson() {
524 throw new bindings.MojoCodecError( 512 throw new bindings.MojoCodecError(
525 'Object containing handles cannot be encoded to JSON.'); 513 'Object containing handles cannot be encoded to JSON.');
526 } 514 }
527 } 515 }
528 516
529 517
530
531
532 class UrlLoaderInterceptorInterceptResponseResponseParams extends bindings.Struc t { 518 class UrlLoaderInterceptorInterceptResponseResponseParams extends bindings.Struc t {
533 static const List<bindings.StructDataHeader> kVersions = const [ 519 static const List<bindings.StructDataHeader> kVersions = const [
534 const bindings.StructDataHeader(16, 0) 520 const bindings.StructDataHeader(16, 0)
535 ]; 521 ];
536 UrlLoaderInterceptorResponse response = null; 522 UrlLoaderInterceptorResponse response = null;
537 523
538 UrlLoaderInterceptorInterceptResponseResponseParams() : super(kVersions.last.s ize); 524 UrlLoaderInterceptorInterceptResponseResponseParams() : super(kVersions.last.s ize);
539 525
540 static UrlLoaderInterceptorInterceptResponseResponseParams deserialize(binding s.Message message) { 526 static UrlLoaderInterceptorInterceptResponseResponseParams deserialize(binding s.Message message) {
541 var decoder = new bindings.Decoder(message); 527 var decoder = new bindings.Decoder(message);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 return "UrlLoaderInterceptorInterceptResponseResponseParams(" 579 return "UrlLoaderInterceptorInterceptResponseResponseParams("
594 "response: $response" ")"; 580 "response: $response" ")";
595 } 581 }
596 582
597 Map toJson() { 583 Map toJson() {
598 throw new bindings.MojoCodecError( 584 throw new bindings.MojoCodecError(
599 'Object containing handles cannot be encoded to JSON.'); 585 'Object containing handles cannot be encoded to JSON.');
600 } 586 }
601 } 587 }
602 588
603
604
605
606 const int _UrlLoaderInterceptorFactory_createName = 0; 589 const int _UrlLoaderInterceptorFactory_createName = 0;
607 590
608
609
610 class _UrlLoaderInterceptorFactoryServiceDescription implements service_describe r.ServiceDescription { 591 class _UrlLoaderInterceptorFactoryServiceDescription implements service_describe r.ServiceDescription {
611 dynamic getTopLevelInterface([Function responseFactory]) => 592 dynamic getTopLevelInterface([Function responseFactory]) =>
612 responseFactory(null); 593 responseFactory(null);
613 594
614 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 595 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
615 responseFactory(null); 596 responseFactory(null);
616 597
617 dynamic getAllTypeDefinitions([Function responseFactory]) => 598 dynamic getAllTypeDefinitions([Function responseFactory]) =>
618 responseFactory(null); 599 responseFactory(null);
619 } 600 }
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 _cachedServiceDescription = new _UrlLoaderInterceptorFactoryServiceDescrip tion(); 773 _cachedServiceDescription = new _UrlLoaderInterceptorFactoryServiceDescrip tion();
793 } 774 }
794 return _cachedServiceDescription; 775 return _cachedServiceDescription;
795 } 776 }
796 } 777 }
797 778
798 const int _UrlLoaderInterceptor_interceptRequestName = 0; 779 const int _UrlLoaderInterceptor_interceptRequestName = 0;
799 const int _UrlLoaderInterceptor_interceptFollowRedirectName = 1; 780 const int _UrlLoaderInterceptor_interceptFollowRedirectName = 1;
800 const int _UrlLoaderInterceptor_interceptResponseName = 2; 781 const int _UrlLoaderInterceptor_interceptResponseName = 2;
801 782
802
803
804 class _UrlLoaderInterceptorServiceDescription implements service_describer.Servi ceDescription { 783 class _UrlLoaderInterceptorServiceDescription implements service_describer.Servi ceDescription {
805 dynamic getTopLevelInterface([Function responseFactory]) => 784 dynamic getTopLevelInterface([Function responseFactory]) =>
806 responseFactory(null); 785 responseFactory(null);
807 786
808 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 787 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
809 responseFactory(null); 788 responseFactory(null);
810 789
811 dynamic getAllTypeDefinitions([Function responseFactory]) => 790 dynamic getAllTypeDefinitions([Function responseFactory]) =>
812 responseFactory(null); 791 responseFactory(null);
813 } 792 }
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 static service_describer.ServiceDescription get serviceDescription { 1116 static service_describer.ServiceDescription get serviceDescription {
1138 if (_cachedServiceDescription == null) { 1117 if (_cachedServiceDescription == null) {
1139 _cachedServiceDescription = new _UrlLoaderInterceptorServiceDescription(); 1118 _cachedServiceDescription = new _UrlLoaderInterceptorServiceDescription();
1140 } 1119 }
1141 return _cachedServiceDescription; 1120 return _cachedServiceDescription;
1142 } 1121 }
1143 } 1122 }
1144 1123
1145 1124
1146 1125
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698