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

Unified Diff: net/tools/quic/quic_client.h

Issue 47283002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation error Created 7 years, 2 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/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client.h
diff --git a/net/tools/quic/quic_client.h b/net/tools/quic/quic_client.h
index c8e65a1d53e96bf03896e5d72f55a12e88319893..4835f4b00ece1366235d35a339e23ae20f635038 100644
--- a/net/tools/quic/quic_client.h
+++ b/net/tools/quic/quic_client.h
@@ -39,12 +39,12 @@ class QuicClient : public EpollCallbackInterface,
public:
QuicClient(IPEndPoint server_address,
const string& server_hostname,
- const QuicVersion version,
+ const QuicVersionVector& supported_versions,
bool print_response);
QuicClient(IPEndPoint server_address,
const std::string& server_hostname,
const QuicConfig& config,
- const QuicVersion version);
+ const QuicVersionVector& supported_versions);
virtual ~QuicClient();
@@ -201,8 +201,12 @@ class QuicClient : public EpollCallbackInterface,
// because the socket would otherwise overflow.
bool overflow_supported_;
- // Which QUIC version does this client talk?
- QuicVersion version_;
+ // This vector contains QUIC versions which we currently support.
+ // This should be ordered such that the highest supported version is the first
+ // element, with subsequent elements in descending order (versions can be
+ // skipped as necessary). We will always pick supported_versions_[0] as the
+ // initial version to use.
+ QuicVersionVector supported_versions_;
// If true, then the contents of each response will be printed to stdout
// when the stream is closed (in OnClose).
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698