OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 [DartPackage="mojo"] | |
6 module mojo; | |
7 | |
8 // An interface through which a client may request services from a host. | |
9 // Instances of this interface are created within the context of an | |
10 // already-identified client and host pair, so there is no need to explicitly | |
11 // identify the client or host in the methods below. | |
12 interface ServiceProvider { | |
13 // Asks the host to provide the service identified by |interface_name| through | |
14 // the message |pipe| endpoint supplied by the caller. If the host is not | |
15 // willing or able to provide the requested service, it should close the | |
16 // |pipe|. | |
17 ConnectToService(string interface_name, handle<message_pipe> pipe); | |
18 }; | |
OLD | NEW |