diff options
author | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-16 19:46:56 +0000 |
---|---|---|
committer | mbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-16 19:46:56 +0000 |
commit | 1f418eedde2047d92089e72265ec3e1706d97c10 (patch) | |
tree | ee444e94faae36e30fdc3ec847595e27440ffbbc /net/http/http_stream_factory.h | |
parent | 1b1a9221491b3c47b33c4380efeab04a36d98112 (diff) | |
download | chromium_src-1f418eedde2047d92089e72265ec3e1706d97c10.zip chromium_src-1f418eedde2047d92089e72265ec3e1706d97c10.tar.gz chromium_src-1f418eedde2047d92089e72265ec3e1706d97c10.tar.bz2 |
Add an off switch for SPDY:
--use-spdy=off
BUG=none
TEST=SpdyNetworkTransactionTest.SpdyOnOffToggle
Review URL: http://codereview.chromium.org/3807008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62870 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_stream_factory.h')
-rw-r--r-- | net/http/http_stream_factory.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/http/http_stream_factory.h b/net/http/http_stream_factory.h index b619add..e3b9f64 100644 --- a/net/http/http_stream_factory.h +++ b/net/http/http_stream_factory.h @@ -63,6 +63,12 @@ class HttpStreamFactory : public StreamFactory, // Static settings + // Turns spdy on or off. + static void set_spdy_enabled(bool value) { + spdy_enabled_ = value; + } + static bool spdy_enabled() { return spdy_enabled_; } + // Controls whether or not we use the Alternate-Protocol header. static void set_use_alternate_protocols(bool value) { use_alternate_protocols_ = value; @@ -116,6 +122,7 @@ class HttpStreamFactory : public StreamFactory, static const HostMappingRules* host_mapping_rules_; static const std::string* next_protos_; + static bool spdy_enabled_; static bool use_alternate_protocols_; static bool force_spdy_over_ssl_; static bool force_spdy_always_; |