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

Unified Diff: third_party/mojo/src/mojo/public/dart/src/service_provider.dart

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/mojo/src/mojo/public/dart/src/service_provider.dart
diff --git a/third_party/mojo/src/mojo/public/dart/src/service_provider.dart b/third_party/mojo/src/mojo/public/dart/src/service_provider.dart
deleted file mode 100644
index 6b07f2e3c3ae98bab3effa57c74de19f6ef7c7b7..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/mojo/public/dart/src/service_provider.dart
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-part of application;
-
-typedef core.Listener ListenerFactory(core.MojoMessagePipeEndpoint endpoint);
-
-class ServiceProvider extends service_provider.ServiceProvider {
- ListenerFactory factory;
-
- service_provider.ServiceProviderProxy _proxy;
-
- ServiceProvider(
- service_provider.ServiceProviderStub services,
- [service_provider.ServiceProviderProxy exposedServices = null])
- : _proxy = exposedServices,
- super.fromStub(services) {
- delegate = this;
- }
-
- connectToService(String interfaceName, core.MojoMessagePipeEndpoint pipe) =>
- factory(pipe).listen();
-
- requestService(String name, bindings.Proxy clientImpl) {
- assert(_proxy != null);
- assert(!clientImpl.isBound);
- var pipe = new core.MojoMessagePipe();
- clientImpl.bind(pipe.endpoints[0]);
- _proxy.connectToService(name, pipe.endpoints[1]);
- }
-
- close({bool nodefer : false}) {
- if (_proxy != null) {
- _proxy.close();
- _proxy = null;
- }
- super.close(nodefer: nodefer);
- }
-}
« no previous file with comments | « third_party/mojo/src/mojo/public/dart/src/proxy.dart ('k') | third_party/mojo/src/mojo/public/dart/src/struct.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698