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

Unified Diff: net/quic/crypto/quic_crypto_client_config.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: use kUACV as the Tag and changed client_description to client_version 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/quic/crypto/quic_crypto_client_config.h
diff --git a/net/quic/crypto/quic_crypto_client_config.h b/net/quic/crypto/quic_crypto_client_config.h
index 38575c85fe58ccde68431d2a88585eac935421e6..7cd3c71d1f24d5472f7419a7be9823225038ca48 100644
--- a/net/quic/crypto/quic_crypto_client_config.h
+++ b/net/quic/crypto/quic_crypto_client_config.h
@@ -245,6 +245,11 @@ class NET_EXPORT_PRIVATE QuicCryptoClientConfig : public QuicCryptoConfig {
// TODO(rch): remove this method when we drop support for Windows XP.
void DisableEcdsa();
+ // Saves the client version that will be passed in QUIC's CHLO message.
+ void set_client_version(const std::string& client_version) {
Ryan Hamilton 2014/06/05 14:12:15 I'm still not enamored of "version". It makes me t
ramant (doing other things) 2014/06/05 17:07:49 jar suggested UAID. Changed all the code to use us
+ client_version_ = client_version;
+ }
+
private:
typedef std::map<QuicServerId, CachedState*> CachedStateMap;
@@ -274,6 +279,9 @@ class NET_EXPORT_PRIVATE QuicCryptoClientConfig : public QuicCryptoConfig {
// True if ECDSA should be disabled.
bool disable_ecdsa_;
+ // Client version that is passed in QUIC's CHLO message.
+ std::string client_version_;
+
DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientConfig);
};

Powered by Google App Engine
This is Rietveld 408576698