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

Unified Diff: net/spdy/spdy_session.h

Issue 8892026: SPDY - add support for spdy/2.1 to support flow control. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years 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/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.h
===================================================================
--- net/spdy/spdy_session.h (revision 113884)
+++ net/spdy/spdy_session.h (working copy)
@@ -149,9 +149,9 @@
static void SetSSLMode(bool enable) { use_ssl_ = enable; }
static bool SSLMode() { return use_ssl_; }
- // Enable or disable flow control.
- static void set_flow_control(bool enable) { use_flow_control_ = enable; }
- static bool flow_control() { return use_flow_control_; }
+ // Enable or disable flow control used by unit tests. This only applies for
+ // new SpdySessions.
+ static void set_use_flow_control(bool enable) { use_flow_control_ = enable; }
// Sets the max concurrent streams per session, as a ceiling on any server
// specific SETTINGS value.
@@ -224,6 +224,11 @@
return unclaimed_pushed_streams_.size();
}
+ // Returns true if flow control is enabled for the session.
+ bool is_flow_control_enabled() const {
+ return flow_control_;
+ }
+
const BoundNetLog& net_log() const { return net_log_; }
int GetPeerAddress(AddressList* address) const;
@@ -540,6 +545,9 @@
// waste of effort (and MUST not be done).
bool need_to_send_ping_;
+ // Indicate if flow control is enabled or not.
+ bool flow_control_;
+
// Initial send window size for the session; can be changed by an
// arriving SETTINGS frame; newly created streams use this value for the
// initial send window size.
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698