| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_NODE_CHANNEL_H_ | 5 #ifndef MOJO_EDK_SYSTEM_NODE_CHANNEL_H_ |
| 6 #define MOJO_EDK_SYSTEM_NODE_CHANNEL_H_ | 6 #define MOJO_EDK_SYSTEM_NODE_CHANNEL_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <unordered_map> | 9 #include <unordered_map> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 const ports::NodeName& child_name) = 0; | 46 const ports::NodeName& child_name) = 0; |
| 47 virtual void OnAddBrokerClient(const ports::NodeName& from_node, | 47 virtual void OnAddBrokerClient(const ports::NodeName& from_node, |
| 48 const ports::NodeName& client_name, | 48 const ports::NodeName& client_name, |
| 49 base::ProcessHandle process_handle) = 0; | 49 base::ProcessHandle process_handle) = 0; |
| 50 virtual void OnBrokerClientAdded(const ports::NodeName& from_node, | 50 virtual void OnBrokerClientAdded(const ports::NodeName& from_node, |
| 51 const ports::NodeName& client_name, | 51 const ports::NodeName& client_name, |
| 52 ScopedPlatformHandle broker_channel) = 0; | 52 ScopedPlatformHandle broker_channel) = 0; |
| 53 virtual void OnAcceptBrokerClient(const ports::NodeName& from_node, | 53 virtual void OnAcceptBrokerClient(const ports::NodeName& from_node, |
| 54 const ports::NodeName& broker_name, | 54 const ports::NodeName& broker_name, |
| 55 ScopedPlatformHandle broker_channel) = 0; | 55 ScopedPlatformHandle broker_channel) = 0; |
| 56 virtual void OnPortsMessage(Channel::MessagePtr message) = 0; | 56 virtual void OnPortsMessage(const ports::NodeName& from_node, |
| 57 Channel::MessagePtr message) = 0; |
| 57 virtual void OnRequestPortMerge(const ports::NodeName& from_node, | 58 virtual void OnRequestPortMerge(const ports::NodeName& from_node, |
| 58 const ports::PortName& connector_port_name, | 59 const ports::PortName& connector_port_name, |
| 59 const std::string& token) = 0; | 60 const std::string& token) = 0; |
| 60 virtual void OnRequestIntroduction(const ports::NodeName& from_node, | 61 virtual void OnRequestIntroduction(const ports::NodeName& from_node, |
| 61 const ports::NodeName& name) = 0; | 62 const ports::NodeName& name) = 0; |
| 62 virtual void OnIntroduce(const ports::NodeName& from_node, | 63 virtual void OnIntroduce(const ports::NodeName& from_node, |
| 63 const ports::NodeName& name, | 64 const ports::NodeName& name, |
| 64 ScopedPlatformHandle channel_handle) = 0; | 65 ScopedPlatformHandle channel_handle) = 0; |
| 65 #if defined(OS_WIN) || (defined(OS_MACOSX) && !defined(OS_IOS)) | 66 #if defined(OS_WIN) || (defined(OS_MACOSX) && !defined(OS_IOS)) |
| 66 virtual void OnRelayPortsMessage(const ports::NodeName& from_node, | 67 virtual void OnRelayPortsMessage(const ports::NodeName& from_node, |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 PendingRelayMessageQueue pending_relay_messages_; | 175 PendingRelayMessageQueue pending_relay_messages_; |
| 175 #endif | 176 #endif |
| 176 | 177 |
| 177 DISALLOW_COPY_AND_ASSIGN(NodeChannel); | 178 DISALLOW_COPY_AND_ASSIGN(NodeChannel); |
| 178 }; | 179 }; |
| 179 | 180 |
| 180 } // namespace edk | 181 } // namespace edk |
| 181 } // namespace mojo | 182 } // namespace mojo |
| 182 | 183 |
| 183 #endif // MOJO_EDK_SYSTEM_NODE_CHANNEL_H_ | 184 #endif // MOJO_EDK_SYSTEM_NODE_CHANNEL_H_ |
| OLD | NEW |