| 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.
|
|
|