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

Unified Diff: net/http/http_server_properties_impl.h

Issue 312193005: Pass chrome version and channel in CHLO message to server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
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 389c961f491dc0e868174d8e46deed2bac98dc5a..8d1cd3e81e53420e75904dfa313aba02ff3271ad 100644
--- a/net/http/http_server_properties_impl.h
+++ b/net/http/http_server_properties_impl.h
@@ -142,6 +142,9 @@ class NET_EXPORT HttpServerPropertiesImpl
virtual const NetworkStats* GetServerNetworkStats(
const HostPortPair& host_port_pair) const OVERRIDE;
+ virtual void SetClientVersion(const std::string& client_version) OVERRIDE;
+ virtual const std::string GetClientVersion() const OVERRIDE;
+
private:
// |spdy_servers_map_| has flattened representation of servers (host, port)
// that either support or not support SPDY protocol.
@@ -183,6 +186,9 @@ class NET_EXPORT HttpServerPropertiesImpl
// ".googlevideo.com", ".googleusercontent.com") of canoncial hostnames.
CanonicalSufficList canoncial_suffixes_;
+ // Client version and it is passed in QUIC's CHLO message.
+ std::string client_version_;
Ryan Hamilton 2014/06/04 22:31:15 It doesn't seem to me that client_version_ is some
ramant (doing other things) 2014/06/05 02:51:55 Done.
+
base::WeakPtrFactory<HttpServerPropertiesImpl> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(HttpServerPropertiesImpl);

Powered by Google App Engine
This is Rietveld 408576698