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

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

Issue 2603723002: Add a new QUIC platform API for text utilities. (Closed)
Patch Set: net/tools/quic/quic_packet_printer_bin.cc Created 3 years, 11 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_client.cc ('k') | net/tools/quic/quic_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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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_client_base.h" 5 #include "net/tools/quic/quic_client_base.h"
6 6
7 #include "base/strings/string_number_conversions.h"
8 #include "net/quic/core/crypto/quic_random.h" 7 #include "net/quic/core/crypto/quic_random.h"
9 #include "net/quic/core/quic_server_id.h" 8 #include "net/quic/core/quic_server_id.h"
10 #include "net/quic/core/spdy_utils.h" 9 #include "net/quic/core/spdy_utils.h"
10 #include "net/quic/platform/api/quic_text_utils.h"
11 11
12 using base::StringPiece; 12 using base::StringPiece;
13 using base::StringToInt; 13 using base::StringToInt;
14 using std::string; 14 using std::string;
15 15
16 namespace net { 16 namespace net {
17 17
18 void QuicClientBase::ClientQuicDataToResend::Resend() { 18 void QuicClientBase::ClientQuicDataToResend::Resend() {
19 client_->SendRequest(*headers_, body_, fin_); 19 client_->SendRequest(*headers_, body_, fin_);
20 headers_ = nullptr; 20 headers_ = nullptr;
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 QUIC_BUG_IF(!store_response_) << "Response not stored!"; 477 QUIC_BUG_IF(!store_response_) << "Response not stored!";
478 return latest_response_body_; 478 return latest_response_body_;
479 } 479 }
480 480
481 const string& QuicClientBase::latest_response_trailers() const { 481 const string& QuicClientBase::latest_response_trailers() const {
482 QUIC_BUG_IF(!store_response_) << "Response not stored!"; 482 QUIC_BUG_IF(!store_response_) << "Response not stored!";
483 return latest_response_trailers_; 483 return latest_response_trailers_;
484 } 484 }
485 485
486 } // namespace net 486 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | net/tools/quic/quic_client_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698