| 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 } | 401 } |
| 402 | 402 |
| 403 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { | 403 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { |
| 404 if (!session_) | 404 if (!session_) |
| 405 return false; | 405 return false; |
| 406 | 406 |
| 407 *endpoint = session_->peer_address(); | 407 *endpoint = session_->peer_address(); |
| 408 return true; | 408 return true; |
| 409 } | 409 } |
| 410 | 410 |
| 411 Error QuicHttpStream::GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, | 411 Error QuicHttpStream::GetTokenBindingSignature(crypto::ECPrivateKey* key, |
| 412 std::vector<uint8_t>* out) { | 412 TokenBindingType tb_type, |
| 413 return session_->GetTokenBindingSignature(key, out); | 413 std::vector<uint8_t>* out) { |
| 414 return session_->GetTokenBindingSignature(key, tb_type, out); |
| 414 } | 415 } |
| 415 | 416 |
| 416 void QuicHttpStream::Drain(HttpNetworkSession* session) { | 417 void QuicHttpStream::Drain(HttpNetworkSession* session) { |
| 417 NOTREACHED(); | 418 NOTREACHED(); |
| 418 Close(false); | 419 Close(false); |
| 419 delete this; | 420 delete this; |
| 420 } | 421 } |
| 421 | 422 |
| 422 void QuicHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) { | 423 void QuicHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) { |
| 423 details->connection_info = HttpResponseInfo::CONNECTION_INFO_QUIC1_SPDY3; | 424 details->connection_info = HttpResponseInfo::CONNECTION_INFO_QUIC1_SPDY3; |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 closed_is_first_stream_ = stream_->IsFirstStream(); | 824 closed_is_first_stream_ = stream_->IsFirstStream(); |
| 824 stream_ = nullptr; | 825 stream_ = nullptr; |
| 825 | 826 |
| 826 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress | 827 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress |
| 827 // read. | 828 // read. |
| 828 if (request_body_stream_) | 829 if (request_body_stream_) |
| 829 request_body_stream_->Reset(); | 830 request_body_stream_->Reset(); |
| 830 } | 831 } |
| 831 | 832 |
| 832 } // namespace net | 833 } // namespace net |
| OLD | NEW |