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_PORTS_NODE_H_ | 5 #ifndef MOJO_EDK_SYSTEM_PORTS_NODE_H_ |
6 #define MOJO_EDK_SYSTEM_PORTS_NODE_H_ | 6 #define MOJO_EDK_SYSTEM_PORTS_NODE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 int WillSendMessage_Locked(const LockedPort& port, | 175 int WillSendMessage_Locked(const LockedPort& port, |
176 const PortName& port_name, | 176 const PortName& port_name, |
177 Message* message); | 177 Message* message); |
178 int BeginProxying_Locked(const LockedPort& port, const PortName& port_name); | 178 int BeginProxying_Locked(const LockedPort& port, const PortName& port_name); |
179 int BeginProxying(PortRef port_ref); | 179 int BeginProxying(PortRef port_ref); |
180 int ForwardMessages_Locked(const LockedPort& port, const PortName& port_name); | 180 int ForwardMessages_Locked(const LockedPort& port, const PortName& port_name); |
181 void InitiateProxyRemoval(const LockedPort& port, const PortName& port_name); | 181 void InitiateProxyRemoval(const LockedPort& port, const PortName& port_name); |
182 void MaybeRemoveProxy_Locked(const LockedPort& port, | 182 void MaybeRemoveProxy_Locked(const LockedPort& port, |
183 const PortName& port_name); | 183 const PortName& port_name); |
184 void TryRemoveProxy(PortRef port_ref); | 184 void TryRemoveProxy(PortRef port_ref); |
| 185 void DestroyAllPortsWithPeer(const NodeName& node_name, |
| 186 const PortName& port_name); |
185 | 187 |
186 ScopedMessage NewInternalMessage_Helper(const PortName& port_name, | 188 ScopedMessage NewInternalMessage_Helper(const PortName& port_name, |
187 const EventType& type, | 189 const EventType& type, |
188 const void* data, | 190 const void* data, |
189 size_t num_data_bytes); | 191 size_t num_data_bytes); |
190 | 192 |
191 ScopedMessage NewInternalMessage(const PortName& port_name, | 193 ScopedMessage NewInternalMessage(const PortName& port_name, |
192 const EventType& type) { | 194 const EventType& type) { |
193 return NewInternalMessage_Helper(port_name, type, nullptr, 0); | 195 return NewInternalMessage_Helper(port_name, type, nullptr, 0); |
194 } | 196 } |
(...skipping 16 matching lines...) Expand all Loading... |
211 std::unordered_map<PortName, scoped_refptr<Port>> ports_; | 213 std::unordered_map<PortName, scoped_refptr<Port>> ports_; |
212 | 214 |
213 DISALLOW_COPY_AND_ASSIGN(Node); | 215 DISALLOW_COPY_AND_ASSIGN(Node); |
214 }; | 216 }; |
215 | 217 |
216 } // namespace ports | 218 } // namespace ports |
217 } // namespace edk | 219 } // namespace edk |
218 } // namespace mojo | 220 } // namespace mojo |
219 | 221 |
220 #endif // MOJO_EDK_SYSTEM_PORTS_NODE_H_ | 222 #endif // MOJO_EDK_SYSTEM_PORTS_NODE_H_ |
OLD | NEW |