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

Unified Diff: net/http/http_server_properties.h

Issue 605563003: QUIC - Code to persist if we had talked QUIC to a server and if so what (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | 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 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;
« no previous file with comments | « no previous file | net/http/http_server_properties_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698