1 // Copyright 2013 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.
5 [JavaPackage="org.chromium.mojo.bindings.test"]
8 // This sample shows how handles to MessagePipes can be sent as both parameters
9 // to methods as well as fields on structs.
13 handle<message_pipe> pipe;
14 handle<message_pipe>[] more_pipes;
19 handle<message_pipe> pipe;
22 [Client=FactoryClient]
24 DoStuff(Request request, handle<message_pipe> pipe);
25 DoStuff2(handle<data_pipe_consumer> pipe);
28 interface FactoryClient {
29 DidStuff(Response response, string text);
30 DidStuff2(string text);