| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 void OnGoAway(const QuicGoAwayFrame& frame) override {} | 82 void OnGoAway(const QuicGoAwayFrame& frame) override {} |
| 83 void OnConnectionClosed(QuicErrorCode error, | 83 void OnConnectionClosed(QuicErrorCode error, |
| 84 const std::string& error_details, | 84 const std::string& error_details, |
| 85 ConnectionCloseSource source) override {} | 85 ConnectionCloseSource source) override {} |
| 86 void OnWriteBlocked() override {} | 86 void OnWriteBlocked() override {} |
| 87 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override {} | 87 void OnSuccessfulVersionNegotiation(const QuicVersion& version) override {} |
| 88 void OnCongestionWindowChange(QuicTime now) override {} | 88 void OnCongestionWindowChange(QuicTime now) override {} |
| 89 void OnConnectionMigration(PeerAddressChangeType type) override {} | 89 void OnConnectionMigration(PeerAddressChangeType type) override {} |
| 90 void OnPathDegrading() override {} | 90 void OnPathDegrading() override {} |
| 91 void PostProcessAfterData() override {} | 91 void PostProcessAfterData() override {} |
| 92 void OnAckNeedsRetransmittableFrame() override {} |
| 92 // End QuicConnectionVisitorInterface implementation. | 93 // End QuicConnectionVisitorInterface implementation. |
| 93 | 94 |
| 94 private: | 95 private: |
| 95 // A Writer object that writes into the |nic_tx_queue_|. | 96 // A Writer object that writes into the |nic_tx_queue_|. |
| 96 class Writer : public QuicPacketWriter { | 97 class Writer : public QuicPacketWriter { |
| 97 public: | 98 public: |
| 98 explicit Writer(QuicEndpoint* endpoint); | 99 explicit Writer(QuicEndpoint* endpoint); |
| 99 ~Writer() override; | 100 ~Writer() override; |
| 100 | 101 |
| 101 WriteResult WritePacket(const char* buffer, | 102 WriteResult WritePacket(const char* buffer, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 void Act() override{}; | 161 void Act() override{}; |
| 161 | 162 |
| 162 private: | 163 private: |
| 163 std::unordered_map<std::string, QuicEndpoint*> mapping_; | 164 std::unordered_map<std::string, QuicEndpoint*> mapping_; |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 } // namespace simulator | 167 } // namespace simulator |
| 167 } // namespace net | 168 } // namespace net |
| 168 | 169 |
| 169 #endif // NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ | 170 #endif // NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_ |
| OLD | NEW |