diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-07 03:53:02 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-07 03:53:02 +0000 |
commit | d1a3edbfce9a5e91e1fed6bc1ac857ec1cc91089 (patch) | |
tree | c76b35ab5a541e2d7d06f15a65e540a9da58424d /net/http/http_server_properties.h | |
parent | fc3ff06f4687604132f7727e4d8bb2e1dd3b6934 (diff) | |
download | chromium_src-d1a3edbfce9a5e91e1fed6bc1ac857ec1cc91089.zip chromium_src-d1a3edbfce9a5e91e1fed6bc1ac857ec1cc91089.tar.gz chromium_src-d1a3edbfce9a5e91e1fed6bc1ac857ec1cc91089.tar.bz2 |
Revert 113338 - Revert 113315 (speculative revert for http://crbug.com/106657)
- Save pipelining capabilities for the most used hosts between sessions.
BUG=None
TEST=unit_tests
Review URL: http://codereview.chromium.org/8770035
TBR=simonjam@chromium.org
Review URL: http://codereview.chromium.org/8833003
TBR=thakis@chromium.org
Review URL: http://codereview.chromium.org/8832003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113341 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_server_properties.h')
-rw-r--r-- | net/http/http_server_properties.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h index 51171c2..cd4ae4b 100644 --- a/net/http/http_server_properties.h +++ b/net/http/http_server_properties.h @@ -10,6 +10,7 @@ #include "base/basictypes.h" #include "net/base/host_port_pair.h" #include "net/base/net_export.h" +#include "net/http/http_pipelined_host_capability.h" #include "net/spdy/spdy_framer.h" // TODO(willchan): Reconsider this. namespace net { @@ -35,6 +36,8 @@ struct NET_EXPORT PortAlternateProtocolPair { typedef std::map<HostPortPair, PortAlternateProtocolPair> AlternateProtocolMap; typedef std::map<HostPortPair, spdy::SpdySettings> SpdySettingsMap; +typedef std::map<HostPortPair, + HttpPipelinedHostCapability> PipelineCapabilityMap; extern const char kAlternateProtocolHeader[]; extern const char* const kAlternateProtocolStrings[NUM_ALTERNATE_PROTOCOLS]; @@ -95,6 +98,17 @@ class NET_EXPORT HttpServerProperties { // Returns all persistent SpdySettings. virtual const SpdySettingsMap& spdy_settings_map() const = 0; + virtual HttpPipelinedHostCapability GetPipelineCapability( + const HostPortPair& origin) = 0; + + virtual void SetPipelineCapability( + const HostPortPair& origin, + HttpPipelinedHostCapability capability) = 0; + + virtual void ClearPipelineCapabilities() = 0; + + virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0; + private: DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); }; |