Index: net/quic/quic_connection.h |
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h |
index 96f5cbcd75343f1589aedad760838532acdae5aa..abab048752a4b4dbaae665fc5e97be53a04cddbb 100644 |
--- a/net/quic/quic_connection.h |
+++ b/net/quic/quic_connection.h |
@@ -24,6 +24,7 @@ |
#include <string> |
#include <vector> |
+#include "base/basictypes.h" |
#include "base/logging.h" |
#include "net/base/iovec.h" |
#include "net/base/ip_endpoint.h" |
@@ -258,6 +259,11 @@ class NET_EXPORT_PRIVATE QuicConnection |
// Sets connection parameters from the supplied |config|. |
void SetFromConfig(const QuicConfig& config); |
+ // Called by the Session when the client has provided CachedNetworkParameters. |
+ // Virtual for tests. |
+ virtual void ResumeConnectionState( |
+ const CachedNetworkParameters& cached_network_params); |
+ |
// Sets the number of active streams on the connection for congestion control. |
void SetNumOpenStreams(size_t num_streams); |
@@ -689,7 +695,7 @@ class NET_EXPORT_PRIVATE QuicConnection |
IPEndPoint self_address_; |
IPEndPoint peer_address_; |
// Used to store latest peer port to possibly migrate to later. |
- int migrating_peer_port_; |
+ uint16 migrating_peer_port_; |
// True if the last packet has gotten far enough in the framer to be |
// decrypted. |
@@ -783,8 +789,8 @@ class NET_EXPORT_PRIVATE QuicConnection |
// This is used for timeouts, and does not indicate the packet was processed. |
QuicTime time_of_last_received_packet_; |
- // The last time a new (non-retransmitted) packet was sent for this |
- // connection. |
+ // The last time this connection began sending a new (non-retransmitted) |
+ // packet. |
QuicTime time_of_last_sent_new_packet_; |
// Sequence number of the last sent packet. Packets are guaranteed to be sent |