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

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

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master Created 4 years, 10 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 authenticating_url_loader_interceptor_meta_factory_mojom; 5 library authenticating_url_loader_interceptor_meta_factory_mojom;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:mojo/bindings.dart' as bindings; 9 import 'package:mojo/bindings.dart' as bindings;
10 import 'package:mojo/core.dart' as core; 10 import 'package:mojo/core.dart' as core;
11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
12 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer;
11 import 'package:mojo_services/authentication/authentication.mojom.dart' as authe ntication_mojom; 13 import 'package:mojo_services/authentication/authentication.mojom.dart' as authe ntication_mojom;
12 import 'package:mojo_services/mojo/url_loader_interceptor.mojom.dart' as url_loa der_interceptor_mojom; 14 import 'package:mojo_services/mojo/url_loader_interceptor.mojom.dart' as url_loa der_interceptor_mojom;
13 15
14 16
15 17
16 class _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderInterceptorFa ctoryParams extends bindings.Struct { 18 class _AuthenticatingUrlLoaderInterceptorMetaFactoryCreateUrlLoaderInterceptorFa ctoryParams extends bindings.Struct {
17 static const List<bindings.StructDataHeader> kVersions = const [ 19 static const List<bindings.StructDataHeader> kVersions = const [
18 const bindings.StructDataHeader(24, 0) 20 const bindings.StructDataHeader(24, 0)
19 ]; 21 ];
20 Object factoryRequest = null; 22 Object factoryRequest = null;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 "factoryRequest: $factoryRequest" ", " 81 "factoryRequest: $factoryRequest" ", "
80 "authenticationService: $authenticationService" ")"; 82 "authenticationService: $authenticationService" ")";
81 } 83 }
82 84
83 Map toJson() { 85 Map toJson() {
84 throw new bindings.MojoCodecError( 86 throw new bindings.MojoCodecError(
85 'Object containing handles cannot be encoded to JSON.'); 87 'Object containing handles cannot be encoded to JSON.');
86 } 88 }
87 } 89 }
88 90
91
92
93
89 const int _AuthenticatingUrlLoaderInterceptorMetaFactory_createUrlLoaderIntercep torFactoryName = 0; 94 const int _AuthenticatingUrlLoaderInterceptorMetaFactory_createUrlLoaderIntercep torFactoryName = 0;
90 95
96
97
98 class _AuthenticatingUrlLoaderInterceptorMetaFactoryServiceDescription implement s service_describer.ServiceDescription {
99 dynamic getTopLevelInterface([Function responseFactory]) => null;
100
101 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
102
103 dynamic getAllTypeDefinitions([Function responseFactory]) => null;
104 }
105
91 abstract class AuthenticatingUrlLoaderInterceptorMetaFactory { 106 abstract class AuthenticatingUrlLoaderInterceptorMetaFactory {
92 static const String serviceName = "mojo::AuthenticatingURLLoaderInterceptorMet aFactory"; 107 static const String serviceName = "mojo::AuthenticatingURLLoaderInterceptorMet aFactory";
93 void createUrlLoaderInterceptorFactory(Object factoryRequest, Object authentic ationService); 108 void createUrlLoaderInterceptorFactory(Object factoryRequest, Object authentic ationService);
94 } 109 }
95 110
96 111
97 class _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl extends bindings.P roxy { 112 class _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl extends bindings.P roxy {
98 _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl.fromEndpoint( 113 _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl.fromEndpoint(
99 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 114 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
100 115
101 _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl.fromHandle(core.MojoHa ndle handle) : 116 _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl.fromHandle(core.MojoHa ndle handle) :
102 super.fromHandle(handle); 117 super.fromHandle(handle);
103 118
104 _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl.unbound() : super.unbo und(); 119 _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl.unbound() : super.unbo und();
105 120
106 static _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl newFromEndpoint ( 121 static _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl newFromEndpoint (
107 core.MojoMessagePipeEndpoint endpoint) { 122 core.MojoMessagePipeEndpoint endpoint) {
108 assert(endpoint.setDescription("For _AuthenticatingUrlLoaderInterceptorMetaF actoryProxyImpl")); 123 assert(endpoint.setDescription("For _AuthenticatingUrlLoaderInterceptorMetaF actoryProxyImpl"));
109 return new _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl.fromEndpo int(endpoint); 124 return new _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyImpl.fromEndpo int(endpoint);
110 } 125 }
111 126
127 service_describer.ServiceDescription get serviceDescription =>
128 new _AuthenticatingUrlLoaderInterceptorMetaFactoryServiceDescription();
129
112 void handleResponse(bindings.ServiceMessage message) { 130 void handleResponse(bindings.ServiceMessage message) {
113 switch (message.header.type) { 131 switch (message.header.type) {
114 default: 132 default:
115 proxyError("Unexpected message type: ${message.header.type}"); 133 proxyError("Unexpected message type: ${message.header.type}");
116 close(immediate: true); 134 close(immediate: true);
117 break; 135 break;
118 } 136 }
119 } 137 }
120 138
121 String toString() { 139 String toString() {
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 assert(_impl == null); 264 assert(_impl == null);
247 _impl = d; 265 _impl = d;
248 } 266 }
249 267
250 String toString() { 268 String toString() {
251 var superString = super.toString(); 269 var superString = super.toString();
252 return "AuthenticatingUrlLoaderInterceptorMetaFactoryStub($superString)"; 270 return "AuthenticatingUrlLoaderInterceptorMetaFactoryStub($superString)";
253 } 271 }
254 272
255 int get version => 0; 273 int get version => 0;
274
275 service_describer.ServiceDescription get serviceDescription =>
276 new _AuthenticatingUrlLoaderInterceptorMetaFactoryServiceDescription();
256 } 277 }
257 278
258 279
280
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698