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

Unified Diff: net/quic/quic_connection.h

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « net/quic/quic_config.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.h
diff --git a/net/quic/quic_connection.h b/net/quic/quic_connection.h
index 0b5dd00fa48bc86cff30022d8feaaef9c357d274..cd3d3d4a7de4108f671deba14549028a331d3e1e 100644
--- a/net/quic/quic_connection.h
+++ b/net/quic/quic_connection.h
@@ -494,6 +494,11 @@ class NET_EXPORT_PRIVATE QuicConnection
bool is_server() const { return is_server_; }
+ // Allow easy overriding of truncated connection IDs.
+ void set_can_truncate_connection_ids(bool can) {
+ can_truncate_connection_ids_ = can;
+ }
+
// Returns the underlying sent packet manager.
const QuicSentPacketManager& sent_packet_manager() const {
return sent_packet_manager_;
@@ -557,6 +562,7 @@ class NET_EXPORT_PRIVATE QuicConnection
bool SelectMutualVersion(const QuicVersionVector& available_versions);
QuicPacketWriter* writer() { return writer_; }
+ const QuicPacketWriter* writer() const { return writer_; }
bool peer_port_changed() const { return peer_port_changed_; }
@@ -596,6 +602,10 @@ class NET_EXPORT_PRIVATE QuicConnection
// Clears any accumulated frames from the last received packet.
void ClearLastFrames();
+ // 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();
@@ -811,6 +821,10 @@ class NET_EXPORT_PRIVATE QuicConnection
// We do not support connection migration when the self port changed.
bool self_port_changed_;
+ // Set to false if the connection should not send truncated connection IDs to
+ // the peer, even if the peer supports it.
+ bool can_truncate_connection_ids_;
+
// If non-empty this contains the set of versions received in a
// version negotiation packet.
QuicVersionVector server_supported_versions_;
« no previous file with comments | « net/quic/quic_config.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698