| OLD | NEW |
| 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/quic/chromium/quic_http_stream.h" | 5 #include "net/quic/chromium/quic_http_stream.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 } | 431 } |
| 432 | 432 |
| 433 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { | 433 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { |
| 434 if (!session_) | 434 if (!session_) |
| 435 return false; | 435 return false; |
| 436 | 436 |
| 437 *endpoint = session_->peer_address(); | 437 *endpoint = session_->peer_address(); |
| 438 return true; | 438 return true; |
| 439 } | 439 } |
| 440 | 440 |
| 441 Error QuicHttpStream::GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, | 441 Error QuicHttpStream::GetTokenBindingSignature(crypto::ECPrivateKey* key, |
| 442 std::vector<uint8_t>* out) { | 442 TokenBindingType tb_type, |
| 443 return session_->GetTokenBindingSignature(key, out); | 443 std::vector<uint8_t>* out) { |
| 444 return session_->GetTokenBindingSignature(key, tb_type, out); |
| 444 } | 445 } |
| 445 | 446 |
| 446 void QuicHttpStream::Drain(HttpNetworkSession* session) { | 447 void QuicHttpStream::Drain(HttpNetworkSession* session) { |
| 447 NOTREACHED(); | 448 NOTREACHED(); |
| 448 Close(false); | 449 Close(false); |
| 449 delete this; | 450 delete this; |
| 450 } | 451 } |
| 451 | 452 |
| 452 void QuicHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) { | 453 void QuicHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) { |
| 453 details->connection_info = HttpResponseInfo::CONNECTION_INFO_QUIC1_SPDY3; | 454 details->connection_info = HttpResponseInfo::CONNECTION_INFO_QUIC1_SPDY3; |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); | 827 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); |
| 827 stream_ = nullptr; | 828 stream_ = nullptr; |
| 828 | 829 |
| 829 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress | 830 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress |
| 830 // read. | 831 // read. |
| 831 if (request_body_stream_) | 832 if (request_body_stream_) |
| 832 request_body_stream_->Reset(); | 833 request_body_stream_->Reset(); |
| 833 } | 834 } |
| 834 | 835 |
| 835 } // namespace net | 836 } // namespace net |
| OLD | NEW |