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

Unified Diff: net/quic/quic_connection.h

Issue 1320303009: relnote: Allow individual QUIC writers to limit the maximum packet size. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0909_1
Patch Set: Created 5 years, 3 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_chromium_client_session.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 5fbcbbbae9a3861317fd59ac93b380c14546b652..69e9f12f38e5c49ff9b025516caf7325e5a0876a 100644
--- a/net/quic/quic_connection.h
+++ b/net/quic/quic_connection.h
@@ -457,7 +457,7 @@ class NET_EXPORT_PRIVATE QuicConnection
const QuicClock* clock() const { return clock_; }
QuicRandom* random_generator() const { return random_generator_; }
QuicByteCount max_packet_length() const;
- void set_max_packet_length(QuicByteCount length);
+ void SetMaxPacketLength(QuicByteCount length);
size_t mtu_probe_count() const { return mtu_probe_count_; }
@@ -770,6 +770,13 @@ class NET_EXPORT_PRIVATE QuicConnection
HasRetransmittableData IsRetransmittable(const QueuedPacket& packet);
bool IsConnectionClose(const QueuedPacket& packet);
+ // Set the size of the packet we are targeting while doing path MTU discovery.
+ void SetMtuDiscoveryTarget(QuicByteCount target);
+
+ // Validates the potential maximum packet size, and reduces it if it exceeds
+ // the largest supported by the protocol or the packet writer.
+ QuicByteCount LimitMaxPacketSize(QuicByteCount suggested_max_packet_size);
+
QuicFramer framer_;
QuicConnectionHelperInterface* helper_; // Not owned.
QuicPacketWriter* writer_; // Owned or not depending on |owns_writer_|.
« no previous file with comments | « net/quic/quic_chromium_client_session.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698