diff options
author | agayev@chromium.org <agayev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 02:38:28 +0000 |
---|---|---|
committer | agayev@chromium.org <agayev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 02:38:28 +0000 |
commit | 450c50209ee3bfddef034f09d8a6fa3c47d979d9 (patch) | |
tree | b100647c723cd54e969d2585c9186be63b55b07e /net/spdy/spdy_session.h | |
parent | c2b161b89c8a68d823a9f67ece5e4b000885094c (diff) | |
download | chromium_src-450c50209ee3bfddef034f09d8a6fa3c47d979d9.zip chromium_src-450c50209ee3bfddef034f09d8a6fa3c47d979d9.tar.gz chromium_src-450c50209ee3bfddef034f09d8a6fa3c47d979d9.tar.bz2 |
SPDY flow control: add support for receive window size
BUG=48100
TEST=net_unittests
Review URL: http://codereview.chromium.org/3137014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57453 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy/spdy_session.h')
-rw-r--r-- | net/spdy/spdy_session.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h index 480f9ad..d200e6c 100644 --- a/net/spdy/spdy_session.h +++ b/net/spdy/spdy_session.h @@ -141,7 +141,12 @@ class SpdySession : public base::RefCounted<SpdySession>, static bool SSLMode() { return use_ssl_; } // Enable or disable flow control. - static void SetFlowControl(bool enable) { use_flow_control_ = enable; } + static void set_flow_control(bool enable) { use_flow_control_ = enable; } + static bool flow_control() { return use_flow_control_; } + + // Send WINDOW_UPDATE frame, called by a stream whenever receive window + // size is increased. + void SendWindowUpdate(spdy::SpdyStreamId stream_id, int delta_window_size); // If session is closed, no new streams/transactions should be created. bool IsClosed() const { return state_ == CLOSED; } @@ -366,6 +371,12 @@ class SpdySession : public base::RefCounted<SpdySession>, // initial send window size. int initial_send_window_size_; + // Initial receive window size for the session; there are plans to add a + // command line switch that would cause a SETTINGS frame with window size + // announcement to be sent on startup; newly created streams will use + // this value for the initial receive window size. + int initial_recv_window_size_; + BoundNetLog net_log_; static bool use_ssl_; |