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

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

Issue 883843002: Update mojo sdk to rev 126532ce21c5c3c55a1e1693731411cb60169efd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes to adapt to roll Created 5 years, 11 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
new file mode 100644
index 0000000000000000000000000000000000000000..23f8ecc58d4fafae8d90cb2186f16f2508a84c73
--- /dev/null
+++ b/third_party/mojo/src/mojo/public/dart/src/service_provider.dart
@@ -0,0 +1,19 @@
+// 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 bindings.Stub StubFactory(
+ core.MojoMessagePipeEndpoint endpoint);
+
+class ServiceProvider implements service_provider.ServiceProviderStub {
+ StubFactory _stubFactory;
+
+ ServiceProvider(this._stubFactory);
+
+ connectToService(String interfaceName, core.MojoMessagePipeEndpoint pipe) {
+ var stubImpl = _stubFactory(pipe);
+ stubImpl.listen();
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698