| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef MOJO_EDK_SYSTEM_BROKER_H_ | 5 #ifndef MOJO_EDK_SYSTEM_BROKER_H_ |
| 6 #define MOJO_EDK_SYSTEM_BROKER_H_ | 6 #define MOJO_EDK_SYSTEM_BROKER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "mojo/edk/embedder/scoped_platform_handle.h" | 10 #include "mojo/edk/embedder/scoped_platform_handle.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // Called by |message_pipe| so that it receives messages for the given | 49 // Called by |message_pipe| so that it receives messages for the given |
| 50 // globally unique |pipe_id|. When the connection is established, | 50 // globally unique |pipe_id|. When the connection is established, |
| 51 // MessagePipeDispatcher::GotNonTransferableChannel is called with the channel | 51 // MessagePipeDispatcher::GotNonTransferableChannel is called with the channel |
| 52 // that it can use for sending messages. | 52 // that it can use for sending messages. |
| 53 virtual void ConnectMessagePipe(uint64_t pipe_id, | 53 virtual void ConnectMessagePipe(uint64_t pipe_id, |
| 54 MessagePipeDispatcher* message_pipe) = 0; | 54 MessagePipeDispatcher* message_pipe) = 0; |
| 55 | 55 |
| 56 // Called by |message_pipe| when it's closing so that its route can be | 56 // Called by |message_pipe| when it's closing so that its route can be |
| 57 // unregistered. | 57 // unregistered. |
| 58 // It's ok to call this from a callback (i.e. from OnError or |
| 59 // GotNonTransferableChannel). |
| 58 virtual void CloseMessagePipe(uint64_t pipe_id, | 60 virtual void CloseMessagePipe(uint64_t pipe_id, |
| 59 MessagePipeDispatcher* message_pipe) = 0; | 61 MessagePipeDispatcher* message_pipe) = 0; |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 } // namespace edk | 64 } // namespace edk |
| 63 } // namespace mojo | 65 } // namespace mojo |
| 64 | 66 |
| 65 #endif // MOJO_EDK_SYSTEM_BROKER_H_ | 67 #endif // MOJO_EDK_SYSTEM_BROKER_H_ |
| OLD | NEW |