Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: net/http/http_server_properties_impl.h

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_server_properties.h ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties_impl.h
diff --git a/net/http/http_server_properties_impl.h b/net/http/http_server_properties_impl.h
index 46df37937304275d64b232485b7f45c5d0b3bb5d..fc986890e7595059ba6afc28825ef5417b4eb94d 100644
--- a/net/http/http_server_properties_impl.h
+++ b/net/http/http_server_properties_impl.h
@@ -44,6 +44,9 @@ class NET_EXPORT HttpServerPropertiesImpl
void InitializeSupportsQuic(SupportsQuicMap* supports_quic_map);
+ void InitializeServerNetworkStats(
+ ServerNetworkStatsMap* server_network_stats_map);
+
// Get the list of servers (host/port) that support SPDY. The max_size is the
// number of MRU servers that support SPDY that are to be returned.
void GetSpdyServerList(base::ListValue* spdy_server_list,
@@ -51,8 +54,7 @@ class NET_EXPORT HttpServerPropertiesImpl
// Returns flattened string representation of the |host_port_pair|. Used by
// unittests.
- static std::string GetFlattenedSpdyServer(
- const net::HostPortPair& host_port_pair);
+ static std::string GetFlattenedSpdyServer(const HostPortPair& host_port_pair);
// Debugging to simulate presence of an AlternateProtocol.
// If we don't have an alternate protocol in the map for any given host/port
@@ -62,7 +64,7 @@ class NET_EXPORT HttpServerPropertiesImpl
// Returns the canonical host suffix for |server|, or std::string() if none
// exists.
- std::string GetCanonicalSuffix(const net::HostPortPair& server);
+ std::string GetCanonicalSuffix(const HostPortPair& server);
// -----------------------------
// HttpServerProperties methods:
@@ -142,18 +144,19 @@ class NET_EXPORT HttpServerPropertiesImpl
const SupportsQuicMap& supports_quic_map() const override;
- // Methods for NetworkStats.
+ // Methods for ServerNetworkStats.
void SetServerNetworkStats(const HostPortPair& host_port_pair,
- NetworkStats stats) override;
+ ServerNetworkStats stats) override;
- const NetworkStats* GetServerNetworkStats(
- const HostPortPair& host_port_pair) const override;
+ const ServerNetworkStats* GetServerNetworkStats(
+ const HostPortPair& host_port_pair) override;
+
+ const ServerNetworkStatsMap& server_network_stats_map() const override;
private:
// |spdy_servers_map_| has flattened representation of servers (host, port)
// that either support or not support SPDY protocol.
typedef base::MRUCache<std::string, bool> SpdyServerHostPortMap;
- typedef std::map<HostPortPair, NetworkStats> ServerNetworkStatsMap;
typedef std::map<HostPortPair, HostPortPair> CanonicalHostMap;
typedef std::vector<std::string> CanonicalSufficList;
// List of broken host:ports and the times when they can be expired.
« no previous file with comments | « net/http/http_server_properties.h ('k') | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698