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

Side by Side Diff: net/tools/quic/quic_client_bin.cc

Issue 217053010: Revert of Rename PrivateMode enum values: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_client_session_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // A binary wrapper for QuicClient. Connects to --hostname via --address 5 // A binary wrapper for QuicClient. Connects to --hostname via --address
6 // on --port and requests URLs specified on the command line. 6 // on --port and requests URLs specified on the command line.
7 // Pass --secure to check the certificates using proof verifier. 7 // Pass --secure to check the certificates using proof verifier.
8 // 8 //
9 // For example: 9 // For example:
10 // quic_client --address=127.0.0.1 --port=6122 --hostname=www.google.com 10 // quic_client --address=127.0.0.1 --port=6122 --hostname=www.google.com
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 << " secure: " << FLAGS_secure; 68 << " secure: " << FLAGS_secure;
69 69
70 base::AtExitManager exit_manager; 70 base::AtExitManager exit_manager;
71 71
72 net::IPAddressNumber addr; 72 net::IPAddressNumber addr;
73 CHECK(net::ParseIPLiteralToNumber(FLAGS_address, &addr)); 73 CHECK(net::ParseIPLiteralToNumber(FLAGS_address, &addr));
74 // TODO(rjshade): Set version on command line. 74 // TODO(rjshade): Set version on command line.
75 net::tools::QuicClient client( 75 net::tools::QuicClient client(
76 net::IPEndPoint(addr, FLAGS_port), 76 net::IPEndPoint(addr, FLAGS_port),
77 net::QuicSessionKey(FLAGS_hostname, FLAGS_port, FLAGS_secure, 77 net::QuicSessionKey(FLAGS_hostname, FLAGS_port, FLAGS_secure,
78 net::PRIVACY_MODE_DISABLED), 78 net::kPrivacyModeDisabled),
79 net::QuicSupportedVersions(), true); 79 net::QuicSupportedVersions(), true);
80 80
81 client.Initialize(); 81 client.Initialize();
82 82
83 if (!client.Connect()) return 1; 83 if (!client.Connect()) return 1;
84 84
85 client.SendRequestsAndWaitForResponse(line->GetArgs()); 85 client.SendRequestsAndWaitForResponse(line->GetArgs());
86 return 0; 86 return 0;
87 } 87 }
OLDNEW
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698