| 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();
|
| + }
|
| +}
|
|
|