| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |