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

Unified Diff: net/quic/quic_config.h

Issue 446283002: Include the socket receive buffer in the connection handshake. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@improve_SendAlgorithmSimulator_72332690
Patch Set: Created 6 years, 4 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
Index: net/quic/quic_config.h
diff --git a/net/quic/quic_config.h b/net/quic/quic_config.h
index 376b2b05896f60893eb007dbdbd0b25a35cd52c8..3c5f5cdc16e7216da6dcff23930f0e475366212a 100644
--- a/net/quic/quic_config.h
+++ b/net/quic/quic_config.h
@@ -340,6 +340,15 @@ class NET_EXPORT_PRIVATE QuicConfig {
uint32 ReceivedInitialSessionFlowControlWindowBytes() const;
+ // Sets socket receive buffer to transmit to the peer.
+ void SetSocketReceiveBufferToSend(uint32 window_bytes);
+
+ uint32 GetSocketReceiveBufferToSend() const;
+
+ bool HasReceivedSocketReceiveBuffer() const;
+
+ uint32 ReceivedSocketReceiveBuffer() const;
+
bool negotiated();
// SetDefaults sets the members to sensible, default values.
@@ -389,6 +398,9 @@ class NET_EXPORT_PRIVATE QuicConfig {
QuicFixedUint32 initial_stream_flow_control_window_bytes_;
// Initial session flow control receive window in bytes.
QuicFixedUint32 initial_session_flow_control_window_bytes_;
+
+ // Socket receive buffer in bytes.
+ QuicFixedUint32 socket_receive_buffer_;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698