Chromium Code Reviews| Index: net/http/http_server_properties.h |
| diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h |
| index 51171c23c21de6f48ef870c847e4fbc791eee663..d6cdcd8d54af6ccb2a4f51dfa7731ee1b9846f56 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.h" |
|
mmenke
2011/12/02 21:52:10
You might want to move the Capability enumeration
James Simonsen
2011/12/03 03:16:00
Done. Yeah, seems like the right thing to do. The
|
| #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, |
| + HttpPipelinedHost::Capability> PipelineCapabilityMap; |
|
mmenke
2011/12/02 21:52:10
Since changing how HttpPipelinedHost::Capability m
James Simonsen
2011/12/03 03:16:00
Done.
|
| 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 HttpPipelinedHost::Capability GetPipelineCapability( |
| + const HostPortPair& origin) = 0; |
| + |
| + virtual void SetPipelineCapability( |
| + const HostPortPair& origin, |
| + HttpPipelinedHost::Capability capability) = 0; |
| + |
| + virtual void ClearPipelineCapabilities() = 0; |
|
mmenke
2011/12/02 21:52:10
Was thinking we wouldn't need this, but may want i
James Simonsen
2011/12/03 03:16:00
It seems it's mainly used for when the user clears
|
| + |
| + virtual PipelineCapabilityMap GetPipelineCapabilityMap() const = 0; |
|
ramant (doing other things)
2011/12/03 00:31:43
nit: GetPipelineCapabilityMap => pipeline_capabili
mmenke
2011/12/03 00:38:34
This is not a simple accessor. It converts an MRU
|
| + |
| private: |
| DISALLOW_COPY_AND_ASSIGN(HttpServerProperties); |
| }; |