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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 } | 272 } |
273 | 273 |
274 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { | 274 bool QuicHttpStream::GetRemoteEndpoint(IPEndPoint* endpoint) { |
275 if (!session_) | 275 if (!session_) |
276 return false; | 276 return false; |
277 | 277 |
278 *endpoint = session_->peer_address(); | 278 *endpoint = session_->peer_address(); |
279 return true; | 279 return true; |
280 } | 280 } |
281 | 281 |
| 282 int QuicHttpStream::GetProvidedTokenBindingWithKey( |
| 283 const scoped_ptr<crypto::ECPrivateKey>& key, |
| 284 std::string* header_out) { |
| 285 NOTREACHED(); |
| 286 return ERR_NOT_IMPLEMENTED; |
| 287 } |
| 288 |
282 void QuicHttpStream::Drain(HttpNetworkSession* session) { | 289 void QuicHttpStream::Drain(HttpNetworkSession* session) { |
283 NOTREACHED(); | 290 NOTREACHED(); |
284 Close(false); | 291 Close(false); |
285 delete this; | 292 delete this; |
286 } | 293 } |
287 | 294 |
288 void QuicHttpStream::SetPriority(RequestPriority priority) { | 295 void QuicHttpStream::SetPriority(RequestPriority priority) { |
289 priority_ = priority; | 296 priority_ = priority; |
290 } | 297 } |
291 | 298 |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); | 555 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); |
549 stream_ = nullptr; | 556 stream_ = nullptr; |
550 | 557 |
551 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress | 558 // If |request_body_stream_| is non-NULL, Reset it, to abort any in progress |
552 // read. | 559 // read. |
553 if (request_body_stream_) | 560 if (request_body_stream_) |
554 request_body_stream_->Reset(); | 561 request_body_stream_->Reset(); |
555 } | 562 } |
556 | 563 |
557 } // namespace net | 564 } // namespace net |
OLD | NEW |