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

Unified Diff: net/quic/core/quic_connection.h

Issue 2516033003: Landing Recent QUIC changes until Mon Nov 14 04:43:50 2016 +0000 (Closed)
Patch Set: Remove unused UpdatePacketGapSentHistogram() function. Created 4 years, 1 month 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 | « net/quic/core/quic_config.cc ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_connection.h
diff --git a/net/quic/core/quic_connection.h b/net/quic/core/quic_connection.h
index 456eec5fe609e4af22a2e99abe7dc1fd17512b57..a853cd562058153a3583ec8413f0cf6d762591cb 100644
--- a/net/quic/core/quic_connection.h
+++ b/net/quic/core/quic_connection.h
@@ -46,7 +46,6 @@
#include "net/quic/core/quic_packet_writer.h"
#include "net/quic/core/quic_protocol.h"
#include "net/quic/core/quic_received_packet_manager.h"
-#include "net/quic/core/quic_sent_entropy_manager.h"
#include "net/quic/core/quic_sent_packet_manager_interface.h"
#include "net/quic/core/quic_time.h"
#include "net/quic/core/quic_types.h"
@@ -784,10 +783,6 @@ class NET_EXPORT_PRIVATE QuicConnection
// Deletes and clears any queued packets.
void ClearQueuedPackets();
- // Closes the connection if the sent or received packet manager are tracking
- // too many outstanding packets.
- void MaybeCloseIfTooManyOutstandingPackets();
-
// Writes as many queued packets as possible. The connection must not be
// blocked when this is called.
void WriteQueuedPackets();
@@ -953,7 +948,6 @@ class NET_EXPORT_PRIVATE QuicConnection
bool close_connection_after_five_rtos_;
QuicReceivedPacketManager received_packet_manager_;
- QuicSentEntropyManager sent_entropy_manager_;
// Indicates whether an ack should be sent the next time we try to write.
bool ack_queued_;
@@ -1042,6 +1036,19 @@ class NET_EXPORT_PRIVATE QuicConnection
std::unique_ptr<QuicSentPacketManagerInterface> sent_packet_manager_;
// The state of connection in version negotiation finite state machine.
+ enum QuicVersionNegotiationState {
+ START_NEGOTIATION = 0,
+ // Server-side this implies we've sent a version negotiation packet and are
+ // waiting on the client to select a compatible version. Client-side this
+ // implies we've gotten a version negotiation packet, are retransmitting the
+ // initial packets with a supported version and are waiting for our first
+ // packet from the server.
+ NEGOTIATION_IN_PROGRESS,
+ // This indicates this endpoint has received a packet from the peer with a
+ // version this endpoint supports. Version negotiation is complete, and the
+ // version number will no longer be sent with future packets.
+ NEGOTIATED_VERSION
+ };
QuicVersionNegotiationState version_negotiation_state_;
// Tracks if the connection was created by the server or the client.
« no previous file with comments | « net/quic/core/quic_config.cc ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698