| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ | 6 #define NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ |
| 7 | 7 |
| 8 #include "net/quic/core/crypto/null_decrypter.h" | 8 #include "net/quic/core/crypto/null_decrypter.h" |
| 9 #include "net/quic/core/crypto/null_encrypter.h" | 9 #include "net/quic/core/crypto/null_encrypter.h" |
| 10 #include "net/quic/core/quic_connection.h" | 10 #include "net/quic/core/quic_connection.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 ~QuicEndpointMultiplexer() override; | 151 ~QuicEndpointMultiplexer() override; |
| 152 | 152 |
| 153 // Receives a packet and passes it to the specified endpoint if that endpoint | 153 // Receives a packet and passes it to the specified endpoint if that endpoint |
| 154 // is one of the endpoints being multiplexed, otherwise ignores the packet. | 154 // is one of the endpoints being multiplexed, otherwise ignores the packet. |
| 155 void AcceptPacket(std::unique_ptr<Packet> packet) override; | 155 void AcceptPacket(std::unique_ptr<Packet> packet) override; |
| 156 UnconstrainedPortInterface* GetRxPort() override; | 156 UnconstrainedPortInterface* GetRxPort() override; |
| 157 | 157 |
| 158 // Sets the egress port for all the endpoints being multiplexed. | 158 // Sets the egress port for all the endpoints being multiplexed. |
| 159 void SetTxPort(ConstrainedPortInterface* port) override; | 159 void SetTxPort(ConstrainedPortInterface* port) override; |
| 160 | 160 |
| 161 void Act() override{}; | 161 void Act() override {} |
| 162 | 162 |
| 163 private: | 163 private: |
| 164 std::unordered_map<std::string, QuicEndpoint*> mapping_; | 164 std::unordered_map<std::string, QuicEndpoint*> mapping_; |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 } // namespace simulator | 167 } // namespace simulator |
| 168 } // namespace net | 168 } // namespace net |
| 169 | 169 |
| 170 #endif // NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ | 170 #endif // NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ |
| OLD | NEW |