| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 #if defined(OS_WIN) || (defined(OS_MACOSX) && !defined(OS_IOS)) | 70 #if defined(OS_WIN) || (defined(OS_MACOSX) && !defined(OS_IOS)) |
| 71 virtual void OnRelayPortsMessage(const ports::NodeName& from_node, | 71 virtual void OnRelayPortsMessage(const ports::NodeName& from_node, |
| 72 base::ProcessHandle from_process, | 72 base::ProcessHandle from_process, |
| 73 const ports::NodeName& destination, | 73 const ports::NodeName& destination, |
| 74 Channel::MessagePtr message) = 0; | 74 Channel::MessagePtr message) = 0; |
| 75 virtual void OnPortsMessageFromRelay(const ports::NodeName& from_node, | 75 virtual void OnPortsMessageFromRelay(const ports::NodeName& from_node, |
| 76 const ports::NodeName& source_node, | 76 const ports::NodeName& source_node, |
| 77 Channel::MessagePtr message) = 0; | 77 Channel::MessagePtr message) = 0; |
| 78 #endif | 78 #endif |
| 79 | 79 |
| 80 virtual void OnChannelError(const ports::NodeName& node) = 0; | 80 virtual void OnChannelError(const ports::NodeName& node, |
| 81 NodeChannel* channel) = 0; |
| 81 | 82 |
| 82 #if defined(OS_MACOSX) && !defined(OS_IOS) | 83 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 83 virtual MachPortRelay* GetMachPortRelay() = 0; | 84 virtual MachPortRelay* GetMachPortRelay() = 0; |
| 84 #endif | 85 #endif |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 static scoped_refptr<NodeChannel> Create( | 88 static scoped_refptr<NodeChannel> Create( |
| 88 Delegate* delegate, | 89 Delegate* delegate, |
| 89 ScopedPlatformHandle platform_handle, | 90 ScopedPlatformHandle platform_handle, |
| 90 scoped_refptr<base::TaskRunner> io_task_runner, | 91 scoped_refptr<base::TaskRunner> io_task_runner, |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 PendingRelayMessageQueue pending_relay_messages_; | 203 PendingRelayMessageQueue pending_relay_messages_; |
| 203 #endif | 204 #endif |
| 204 | 205 |
| 205 DISALLOW_COPY_AND_ASSIGN(NodeChannel); | 206 DISALLOW_COPY_AND_ASSIGN(NodeChannel); |
| 206 }; | 207 }; |
| 207 | 208 |
| 208 } // namespace edk | 209 } // namespace edk |
| 209 } // namespace mojo | 210 } // namespace mojo |
| 210 | 211 |
| 211 #endif // MOJO_EDK_SYSTEM_NODE_CHANNEL_H_ | 212 #endif // MOJO_EDK_SYSTEM_NODE_CHANNEL_H_ |
| OLD | NEW |