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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/authenticating_url_loader_interceptor_meta_factory.mojom.dart

Issue 1983453002: Dart: Refactor Stubs (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge Created 4 years, 7 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/authenticating_url_loader_interceptor_meta_factory.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/authenticating_url_loader_interceptor_meta_factory.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/authenticating_url_loader_interceptor_meta_factory.mojom.dart
index 1e3d91c04cea0395af8a5dcc3fdb627224cbd098..e7ae665e2d2e48507c547f0dc819f834bba0e12a 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/authenticating_url_loader_interceptor_meta_factory.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/authenticating_url_loader_interceptor_meta_factory.mojom.dart
@@ -113,9 +113,9 @@ abstract class AuthenticatingUrlLoaderInterceptorMetaFactory {
void createUrlLoaderInterceptorFactory(Object factoryRequest, Object authenticationService);
}
-
-class _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyControl extends bindings.ProxyMessageHandler
- implements bindings.ProxyControl {
+class _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyControl
+ extends bindings.ProxyMessageHandler
+ implements bindings.ProxyControl {
_AuthenticatingUrlLoaderInterceptorMetaFactoryProxyControl.fromEndpoint(
core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
@@ -129,7 +129,6 @@ class _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyControl extends binding
String get serviceName => AuthenticatingUrlLoaderInterceptorMetaFactory.serviceName;
- @override
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -146,9 +145,9 @@ class _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyControl extends binding
}
}
-
-class AuthenticatingUrlLoaderInterceptorMetaFactoryProxy extends bindings.Proxy
- implements AuthenticatingUrlLoaderInterceptorMetaFactory {
+class AuthenticatingUrlLoaderInterceptorMetaFactoryProxy
+ extends bindings.Proxy
+ implements AuthenticatingUrlLoaderInterceptorMetaFactory {
AuthenticatingUrlLoaderInterceptorMetaFactoryProxy.fromEndpoint(
core.MojoMessagePipeEndpoint endpoint)
: super(new _AuthenticatingUrlLoaderInterceptorMetaFactoryProxyControl.fromEndpoint(endpoint));
@@ -186,29 +185,24 @@ class AuthenticatingUrlLoaderInterceptorMetaFactoryProxy extends bindings.Proxy
}
}
-
-class AuthenticatingUrlLoaderInterceptorMetaFactoryStub extends bindings.Stub {
+class _AuthenticatingUrlLoaderInterceptorMetaFactoryStubControl
+ extends bindings.StubMessageHandler
+ implements bindings.StubControl<AuthenticatingUrlLoaderInterceptorMetaFactory> {
AuthenticatingUrlLoaderInterceptorMetaFactory _impl;
- AuthenticatingUrlLoaderInterceptorMetaFactoryStub.fromEndpoint(
+ _AuthenticatingUrlLoaderInterceptorMetaFactoryStubControl.fromEndpoint(
core.MojoMessagePipeEndpoint endpoint, [AuthenticatingUrlLoaderInterceptorMetaFactory impl])
: super.fromEndpoint(endpoint, autoBegin: impl != null) {
_impl = impl;
}
- AuthenticatingUrlLoaderInterceptorMetaFactoryStub.fromHandle(
+ _AuthenticatingUrlLoaderInterceptorMetaFactoryStubControl.fromHandle(
core.MojoHandle handle, [AuthenticatingUrlLoaderInterceptorMetaFactory impl])
: super.fromHandle(handle, autoBegin: impl != null) {
_impl = impl;
}
- AuthenticatingUrlLoaderInterceptorMetaFactoryStub.unbound([this._impl]) : super.unbound();
-
- static AuthenticatingUrlLoaderInterceptorMetaFactoryStub newFromEndpoint(
- core.MojoMessagePipeEndpoint endpoint) {
- assert(endpoint.setDescription("For AuthenticatingUrlLoaderInterceptorMetaFactoryStub"));
- return new AuthenticatingUrlLoaderInterceptorMetaFactoryStub.fromEndpoint(endpoint);
- }
+ _AuthenticatingUrlLoaderInterceptorMetaFactoryStubControl.unbound([this._impl]) : super.unbound();
@@ -253,9 +247,10 @@ class AuthenticatingUrlLoaderInterceptorMetaFactoryStub extends bindings.Stub {
}
}
+ @override
String toString() {
var superString = super.toString();
- return "AuthenticatingUrlLoaderInterceptorMetaFactoryStub($superString)";
+ return "_AuthenticatingUrlLoaderInterceptorMetaFactoryStubControl($superString)";
}
int get version => 0;
@@ -269,5 +264,34 @@ class AuthenticatingUrlLoaderInterceptorMetaFactoryStub extends bindings.Stub {
}
}
+class AuthenticatingUrlLoaderInterceptorMetaFactoryStub
+ extends bindings.Stub<AuthenticatingUrlLoaderInterceptorMetaFactory>
+ implements AuthenticatingUrlLoaderInterceptorMetaFactory {
+ AuthenticatingUrlLoaderInterceptorMetaFactoryStub.fromEndpoint(
+ core.MojoMessagePipeEndpoint endpoint, [AuthenticatingUrlLoaderInterceptorMetaFactory impl])
+ : super(new _AuthenticatingUrlLoaderInterceptorMetaFactoryStubControl.fromEndpoint(endpoint, impl));
+
+ AuthenticatingUrlLoaderInterceptorMetaFactoryStub.fromHandle(
+ core.MojoHandle handle, [AuthenticatingUrlLoaderInterceptorMetaFactory impl])
+ : super(new _AuthenticatingUrlLoaderInterceptorMetaFactoryStubControl.fromHandle(handle, impl));
+
+ AuthenticatingUrlLoaderInterceptorMetaFactoryStub.unbound([AuthenticatingUrlLoaderInterceptorMetaFactory impl])
+ : super(new _AuthenticatingUrlLoaderInterceptorMetaFactoryStubControl.unbound(impl));
+
+ static AuthenticatingUrlLoaderInterceptorMetaFactoryStub newFromEndpoint(
+ core.MojoMessagePipeEndpoint endpoint) {
+ assert(endpoint.setDescription("For AuthenticatingUrlLoaderInterceptorMetaFactoryStub"));
+ return new AuthenticatingUrlLoaderInterceptorMetaFactoryStub.fromEndpoint(endpoint);
+ }
+
+ static service_describer.ServiceDescription get serviceDescription =>
+ _AuthenticatingUrlLoaderInterceptorMetaFactoryStubControl.serviceDescription;
+
+
+ void createUrlLoaderInterceptorFactory(Object factoryRequest, Object authenticationService) {
+ return impl.createUrlLoaderInterceptorFactory(factoryRequest, authenticationService);
+ }
+}
+

Powered by Google App Engine
This is Rietveld 408576698