| 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/quic_http_stream.h" | 5 #include "net/quic/quic_http_stream.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "net/base/io_buffer.h" | 10 #include "net/base/io_buffer.h" |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 } | 274 } |
| 275 | 275 |
| 276 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { | 276 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { |
| 277 if (!session_) | 277 if (!session_) |
| 278 return false; | 278 return false; |
| 279 | 279 |
| 280 *endpoint = session_->peer_address(); | 280 *endpoint = session_->peer_address(); |
| 281 return true; | 281 return true; |
| 282 } | 282 } |
| 283 | 283 |
| 284 int QuicHttpStream::GetSignedEKMForTokenBinding(crypto::ECPrivateKey* key, |
| 285 std::vector<uint8_t>* out) { |
| 286 NOTREACHED(); |
| 287 return ERR_NOT_IMPLEMENTED; |
| 288 } |
| 289 |
| 284 void QuicHttpStream::Drain(HttpNetworkSession* session) { | 290 void QuicHttpStream::Drain(HttpNetworkSession* session) { |
| 285 NOTREACHED(); | 291 NOTREACHED(); |
| 286 Close(false); | 292 Close(false); |
| 287 delete this; | 293 delete this; |
| 288 } | 294 } |
| 289 | 295 |
| 290 void QuicHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) { | 296 void QuicHttpStream::PopulateNetErrorDetails(NetErrorDetails* details) { |
| 291 if (was_handshake_confirmed_) | 297 if (was_handshake_confirmed_) |
| 292 details->quic_connection_error = quic_connection_error_; | 298 details->quic_connection_error = quic_connection_error_; |
| 293 } | 299 } |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); | 561 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); |
| 556 stream_ = nullptr; | 562 stream_ = nullptr; |
| 557 | 563 |
| 558 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress | 564 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress |
| 559 // read. | 565 // read. |
| 560 if (request_body_stream_) | 566 if (request_body_stream_) |
| 561 request_body_stream_->Reset(); | 567 request_body_stream_->Reset(); |
| 562 } | 568 } |
| 563 | 569 |
| 564 } // namespace net | 570 } // namespace net |
| OLD | NEW |