| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module sample { | 5 module sample { |
| 6 | 6 |
| 7 // This sample shows how handles to MessagePipes can be sent as both parameters | 7 // This sample shows how handles to MessagePipes can be sent as both parameters |
| 8 // to methods as well as fields on structs. | 8 // to methods as well as fields on structs. |
| 9 | 9 |
| 10 struct Request { | 10 struct Request { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 DoStuff2(handle<data_pipe_consumer> pipe); | 23 DoStuff2(handle<data_pipe_consumer> pipe); |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 [Peer=Factory] | 26 [Peer=Factory] |
| 27 interface FactoryClient { | 27 interface FactoryClient { |
| 28 DidStuff(Response response, string text); | 28 DidStuff(Response response, string text); |
| 29 DidStuff2(string text); | 29 DidStuff2(string text); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // module sample | 32 } // module sample |
| OLD | NEW |