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

Unified Diff: net/http/http_server_properties.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_proxy_client_socket.cc ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.h
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
index b860cc701503b772a891dbe188ce4730db0ba24b..ce939e1b2db52c36f4ec8d2cf9a662a66e77bf77 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -129,10 +129,18 @@ struct NET_EXPORT SupportsQuic {
std::string address;
};
+struct NET_EXPORT ServerNetworkStats {
+ ServerNetworkStats() : bandwidth_estimate(QuicBandwidth::Zero()) {}
+
+ base::TimeDelta srtt;
+ QuicBandwidth bandwidth_estimate;
+};
+
typedef base::MRUCache<
HostPortPair, AlternateProtocolInfo> AlternateProtocolMap;
typedef base::MRUCache<HostPortPair, SettingsMap> SpdySettingsMap;
typedef std::map<HostPortPair, SupportsQuic> SupportsQuicMap;
+typedef base::MRUCache<HostPortPair, ServerNetworkStats> ServerNetworkStatsMap;
extern const char kAlternateProtocolHeader[];
@@ -143,13 +151,6 @@ extern const char kAlternateProtocolHeader[];
// * Spdy Settings (like CWND ID field)
class NET_EXPORT HttpServerProperties {
public:
- struct NetworkStats {
- NetworkStats() : bandwidth_estimate(QuicBandwidth::Zero()) {}
-
- base::TimeDelta srtt;
- QuicBandwidth bandwidth_estimate;
- };
-
HttpServerProperties() {}
virtual ~HttpServerProperties() {}
@@ -237,10 +238,12 @@ class NET_EXPORT HttpServerProperties {
virtual const SupportsQuicMap& supports_quic_map() const = 0;
virtual void SetServerNetworkStats(const HostPortPair& host_port_pair,
- NetworkStats stats) = 0;
+ ServerNetworkStats stats) = 0;
- virtual const NetworkStats* GetServerNetworkStats(
- const HostPortPair& host_port_pair) const = 0;
+ virtual const ServerNetworkStats* GetServerNetworkStats(
+ const HostPortPair& host_port_pair) = 0;
+
+ virtual const ServerNetworkStatsMap& server_network_stats_map() const = 0;
private:
DISALLOW_COPY_AND_ASSIGN(HttpServerProperties);
« no previous file with comments | « net/http/http_proxy_client_socket.cc ('k') | net/http/http_server_properties_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698