| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 int OnUserMessage(ScopedMessage message); | 147 int OnUserMessage(ScopedMessage message); |
| 148 int OnPortAccepted(const PortName& port_name); | 148 int OnPortAccepted(const PortName& port_name); |
| 149 int OnObserveProxy(const PortName& port_name, | 149 int OnObserveProxy(const PortName& port_name, |
| 150 const ObserveProxyEventData& event); | 150 const ObserveProxyEventData& event); |
| 151 int OnObserveProxyAck(const PortName& port_name, uint64_t last_sequence_num); | 151 int OnObserveProxyAck(const PortName& port_name, uint64_t last_sequence_num); |
| 152 int OnObserveClosure(const PortName& port_name, uint64_t last_sequence_num); | 152 int OnObserveClosure(const PortName& port_name, uint64_t last_sequence_num); |
| 153 int OnMergePort(const PortName& port_name, const MergePortEventData& event); | 153 int OnMergePort(const PortName& port_name, const MergePortEventData& event); |
| 154 | 154 |
| 155 int AddPortWithName(const PortName& port_name, | 155 int AddPortWithName(const PortName& port_name, |
| 156 const scoped_refptr<Port>& port); | 156 const scoped_refptr<Port>& port); |
| 157 void ErasePort(const PortName& port_name); | |
| 158 void ErasePort_Locked(const PortName& port_name); | 157 void ErasePort_Locked(const PortName& port_name); |
| 159 scoped_refptr<Port> GetPort(const PortName& port_name); | 158 scoped_refptr<Port> GetPort(const PortName& port_name); |
| 160 scoped_refptr<Port> GetPort_Locked(const PortName& port_name); | 159 scoped_refptr<Port> GetPort_Locked(const PortName& port_name); |
| 161 | 160 |
| 162 int SendMessageInternal(const PortRef& port_ref, ScopedMessage* message); | 161 int SendMessageInternal(const PortRef& port_ref, ScopedMessage* message); |
| 163 int MergePorts_Locked(const PortRef& port0_ref, const PortRef& port1_ref); | 162 int MergePorts_Locked(const PortRef& port0_ref, const PortRef& port1_ref); |
| 164 void WillSendPort_Locked(Port* port, | 163 void WillSendPort_Locked(Port* port, |
| 165 const NodeName& to_node_name, | 164 const NodeName& to_node_name, |
| 166 PortName* port_name, | 165 PortName* port_name, |
| 167 PortDescriptor* port_descriptor); | 166 PortDescriptor* port_descriptor); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 std::unordered_map<PortName, scoped_refptr<Port>> ports_; | 203 std::unordered_map<PortName, scoped_refptr<Port>> ports_; |
| 205 | 204 |
| 206 DISALLOW_COPY_AND_ASSIGN(Node); | 205 DISALLOW_COPY_AND_ASSIGN(Node); |
| 207 }; | 206 }; |
| 208 | 207 |
| 209 } // namespace ports | 208 } // namespace ports |
| 210 } // namespace edk | 209 } // namespace edk |
| 211 } // namespace mojo | 210 } // namespace mojo |
| 212 | 211 |
| 213 #endif // MOJO_EDK_SYSTEM_PORTS_NODE_H_ | 212 #endif // MOJO_EDK_SYSTEM_PORTS_NODE_H_ |
| OLD | NEW |