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

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

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 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
« no previous file with comments | « net/tools/quic/quic_simple_client.h ('k') | net/tools/quic/quic_simple_client_bin.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 #include "net/tools/quic/quic_simple_client.h" 5 #include "net/tools/quic/quic_simple_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 11 matching lines...) Expand all
22 #include "net/quic/core/quic_connection.h" 22 #include "net/quic/core/quic_connection.h"
23 #include "net/quic/core/quic_flags.h" 23 #include "net/quic/core/quic_flags.h"
24 #include "net/quic/core/quic_packets.h" 24 #include "net/quic/core/quic_packets.h"
25 #include "net/quic/core/quic_server_id.h" 25 #include "net/quic/core/quic_server_id.h"
26 #include "net/quic/core/spdy_utils.h" 26 #include "net/quic/core/spdy_utils.h"
27 #include "net/socket/udp_client_socket.h" 27 #include "net/socket/udp_client_socket.h"
28 #include "net/spdy/spdy_header_block.h" 28 #include "net/spdy/spdy_header_block.h"
29 #include "net/spdy/spdy_http_utils.h" 29 #include "net/spdy/spdy_http_utils.h"
30 30
31 using std::string; 31 using std::string;
32 using base::StringPiece;
33 32
34 namespace net { 33 namespace net {
35 34
36 QuicSimpleClient::QuicSimpleClient( 35 QuicSimpleClient::QuicSimpleClient(
37 QuicSocketAddress server_address, 36 QuicSocketAddress server_address,
38 const QuicServerId& server_id, 37 const QuicServerId& server_id,
39 const QuicVersionVector& supported_versions, 38 const QuicVersionVector& supported_versions,
40 std::unique_ptr<ProofVerifier> proof_verifier) 39 std::unique_ptr<ProofVerifier> proof_verifier)
41 : QuicClientBase(server_id, 40 : QuicClientBase(server_id,
42 supported_versions, 41 supported_versions,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 QuicSocketAddress(QuicSocketAddressImpl(local_address)), 160 QuicSocketAddress(QuicSocketAddressImpl(local_address)),
162 QuicSocketAddress(QuicSocketAddressImpl(peer_address)), packet); 161 QuicSocketAddress(QuicSocketAddressImpl(peer_address)), packet);
163 if (!session()->connection()->connected()) { 162 if (!session()->connection()->connected()) {
164 return false; 163 return false;
165 } 164 }
166 165
167 return true; 166 return true;
168 } 167 }
169 168
170 } // namespace net 169 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_client.h ('k') | net/tools/quic/quic_simple_client_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698