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

Unified Diff: net/tools/quic/quic_time_wait_list_manager.h

Issue 2621573003: move SendPublicReset from private to a protected virtual function (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_time_wait_list_manager.h
diff --git a/net/tools/quic/quic_time_wait_list_manager.h b/net/tools/quic/quic_time_wait_list_manager.h
index 17eda88ec68f60ce93ec666674bb5476c2bfb95f..3c4dc0223a01ca45d91f9bae87c4d39aa4f3e8ba 100644
--- a/net/tools/quic/quic_time_wait_list_manager.h
+++ b/net/tools/quic/quic_time_wait_list_manager.h
@@ -120,6 +120,12 @@ class QuicTimeWaitListManager : public QuicBlockedWriterInterface {
virtual std::unique_ptr<QuicEncryptedPacket> BuildPublicReset(
const QuicPublicResetPacket& packet);
+ // Creates a public reset packet and sends it or queues it to be sent later.
+ virtual void SendPublicReset(const QuicSocketAddress& server_address,
+ const QuicSocketAddress& client_address,
+ QuicConnectionId connection_id,
+ QuicPacketNumber rejected_packet_number);
+
private:
friend class test::QuicDispatcherPeer;
friend class test::QuicTimeWaitListManagerPeer;
@@ -131,12 +137,6 @@ class QuicTimeWaitListManager : public QuicBlockedWriterInterface {
// number of received packets.
bool ShouldSendResponse(int received_packet_count);
- // Creates a public reset packet and sends it or queues it to be sent later.
- void SendPublicReset(const QuicSocketAddress& server_address,
- const QuicSocketAddress& client_address,
- QuicConnectionId connection_id,
- QuicPacketNumber rejected_packet_number);
-
// Either sends the packet and deletes it or makes pending_packets_queue_ the
// owner of the packet.
void SendOrQueuePacket(std::unique_ptr<QueuedPacket> packet);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698