| Index: net/http/http_server_properties.h
|
| diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
|
| index 476dacf29aea271731214da3c7d1212f98aae259..6e4f483391f4a195b958c06610ccc4c184d3e3a9 100644
|
| --- a/net/http/http_server_properties.h
|
| +++ b/net/http/http_server_properties.h
|
| @@ -206,8 +206,9 @@ typedef std::vector<AlternativeService> AlternativeServiceVector;
|
| typedef std::vector<AlternativeServiceInfo> AlternativeServiceInfoVector;
|
| typedef base::MRUCache<url::SchemeHostPort, AlternativeServiceInfoVector>
|
| AlternativeServiceMap;
|
| -typedef base::MRUCache<HostPortPair, SettingsMap> SpdySettingsMap;
|
| -typedef base::MRUCache<HostPortPair, ServerNetworkStats> ServerNetworkStatsMap;
|
| +typedef base::MRUCache<url::SchemeHostPort, SettingsMap> SpdySettingsMap;
|
| +typedef base::MRUCache<url::SchemeHostPort, ServerNetworkStats>
|
| + ServerNetworkStatsMap;
|
| typedef base::MRUCache<QuicServerId, std::string> QuicServerInfoMap;
|
|
|
| // Persist 5 QUIC Servers. This is mainly used by cronet.
|
| @@ -241,11 +242,11 @@ class NET_EXPORT HttpServerProperties {
|
| virtual bool SupportsRequestPriority(const url::SchemeHostPort& server) = 0;
|
|
|
| // Returns the value set by SetSupportsSpdy(). If not set, returns false.
|
| - virtual bool GetSupportsSpdy(const HostPortPair& server) = 0;
|
| + virtual bool GetSupportsSpdy(const url::SchemeHostPort& server) = 0;
|
|
|
| // Add |server| into the persistent store. Should only be called from IO
|
| // thread.
|
| - virtual void SetSupportsSpdy(const HostPortPair& server,
|
| + virtual void SetSupportsSpdy(const url::SchemeHostPort& server,
|
| bool support_spdy) = 0;
|
|
|
| // Returns true if |server| has required HTTP/1.1 via HTTP/2 error code.
|
| @@ -322,17 +323,17 @@ class NET_EXPORT HttpServerProperties {
|
| // Gets a reference to the SettingsMap stored for a host.
|
| // If no settings are stored, returns an empty SettingsMap.
|
| virtual const SettingsMap& GetSpdySettings(
|
| - const HostPortPair& host_port_pair) = 0;
|
| + const url::SchemeHostPort& origin) = 0;
|
|
|
| // Saves an individual SPDY setting for a host. Returns true if SPDY setting
|
| // is to be persisted.
|
| - virtual bool SetSpdySetting(const HostPortPair& host_port_pair,
|
| + virtual bool SetSpdySetting(const url::SchemeHostPort& origin,
|
| SpdySettingsIds id,
|
| SpdySettingsFlags flags,
|
| uint32_t value) = 0;
|
|
|
| // Clears all SPDY settings for a host.
|
| - virtual void ClearSpdySettings(const HostPortPair& host_port_pair) = 0;
|
| + virtual void ClearSpdySettings(const url::SchemeHostPort& origin) = 0;
|
|
|
| // Clears all SPDY settings for all hosts.
|
| virtual void ClearAllSpdySettings() = 0;
|
| @@ -345,12 +346,12 @@ class NET_EXPORT HttpServerProperties {
|
| virtual void SetSupportsQuic(bool used_quic,
|
| const IPAddress& last_address) = 0;
|
|
|
| - // Sets |stats| for |host_port_pair|.
|
| - virtual void SetServerNetworkStats(const HostPortPair& host_port_pair,
|
| + // Sets |stats| for |origin|.
|
| + virtual void SetServerNetworkStats(const url::SchemeHostPort& origin,
|
| ServerNetworkStats stats) = 0;
|
|
|
| virtual const ServerNetworkStats* GetServerNetworkStats(
|
| - const HostPortPair& host_port_pair) = 0;
|
| + const url::SchemeHostPort& origin) = 0;
|
|
|
| virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0;
|
|
|
|
|