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

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

Issue 19858003: * Removed QuicTag kQuicVersion1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments from rch Created 7 years, 5 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/quic_client.h ('k') | net/tools/quic/quic_client_bin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client.cc
diff --git a/net/tools/quic/quic_client.cc b/net/tools/quic/quic_client.cc
index b7e8d78c1909722498670a6fdc04633b50b7c214..0d3baa9fa4ded5a236ed1ef8c7ad3d2071102c3b 100644
--- a/net/tools/quic/quic_client.cc
+++ b/net/tools/quic/quic_client.cc
@@ -31,20 +31,23 @@ namespace tools {
const int kEpollFlags = EPOLLIN | EPOLLOUT | EPOLLET;
QuicClient::QuicClient(IPEndPoint server_address,
- const string& server_hostname)
+ const string& server_hostname,
+ const QuicVersion version)
: server_address_(server_address),
server_hostname_(server_hostname),
local_port_(0),
fd_(-1),
initialized_(false),
packets_dropped_(0),
- overflow_supported_(false) {
+ overflow_supported_(false),
+ version_(version) {
config_.SetDefaults();
}
QuicClient::QuicClient(IPEndPoint server_address,
const string& server_hostname,
- const QuicConfig& config)
+ const QuicConfig& config,
+ const QuicVersion version)
: server_address_(server_address),
server_hostname_(server_hostname),
config_(config),
@@ -52,7 +55,8 @@ QuicClient::QuicClient(IPEndPoint server_address,
fd_(-1),
initialized_(false),
packets_dropped_(0),
- overflow_supported_(false) {
+ overflow_supported_(false),
+ version_(version) {
}
QuicClient::~QuicClient() {
@@ -152,7 +156,7 @@ bool QuicClient::StartConnect() {
config_,
new QuicConnection(guid, server_address_,
new QuicEpollConnectionHelper(fd_, &epoll_server_),
- false),
+ false, version_),
&crypto_config_));
return session_->CryptoConnect();
}
« no previous file with comments | « net/tools/quic/quic_client.h ('k') | net/tools/quic/quic_client_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698