| Index: net/http/http_server_properties.h
|
| diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
|
| index c2427cdc76c3a5e8e2271c00ec316a9c4aa8cd08..ae12052f2e2297128082a0c793022c5a0b5340a5 100644
|
| --- a/net/http/http_server_properties.h
|
| +++ b/net/http/http_server_properties.h
|
| @@ -113,9 +113,24 @@ struct NET_EXPORT AlternateProtocolInfo {
|
| double probability;
|
| };
|
|
|
| +struct NET_EXPORT SupportsQuic {
|
| + SupportsQuic() : used_quic(false) {}
|
| + SupportsQuic(bool used_quic, const std::string& address)
|
| + : used_quic(used_quic),
|
| + address(address) {}
|
| +
|
| + bool Equals(const SupportsQuic& other) const {
|
| + return used_quic == other.used_quic && address == other.address;
|
| + }
|
| +
|
| + bool used_quic;
|
| + std::string address;
|
| +};
|
| +
|
| typedef base::MRUCache<
|
| HostPortPair, AlternateProtocolInfo> AlternateProtocolMap;
|
| typedef base::MRUCache<HostPortPair, SettingsMap> SpdySettingsMap;
|
| +typedef std::map<HostPortPair, SupportsQuic> SupportsQuicMap;
|
|
|
| extern const char kAlternateProtocolHeader[];
|
|
|
| @@ -213,6 +228,16 @@ class NET_EXPORT HttpServerProperties {
|
| // Returns all persistent SPDY settings.
|
| virtual const SpdySettingsMap& spdy_settings_map() const = 0;
|
|
|
| + // TODO(rtenneti): Make SupportsQuic a global (instead of per host_port_pair).
|
| + virtual SupportsQuic GetSupportsQuic(
|
| + const HostPortPair& host_port_pair) const = 0;
|
| +
|
| + virtual void SetSupportsQuic(const HostPortPair& host_port_pair,
|
| + bool used_quic,
|
| + const std::string& address) = 0;
|
| +
|
| + virtual const SupportsQuicMap& supports_quic_map() const = 0;
|
| +
|
| virtual void SetServerNetworkStats(const HostPortPair& host_port_pair,
|
| NetworkStats stats) = 0;
|
|
|
|
|