Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: net/quic/test_tools/simulator/quic_endpoint.h

Issue 2846033002: Part of QUIC v39 change: 1) do not ack acks. 2) Send a WINDOW_UPDATE frame every 20 packets which d… (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/test_tools/simple_quic_framer.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/quic/test_tools/simple_quic_framer.cc ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698