| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/bidirectional_stream_quic_impl.h" | 5 #include "net/quic/chromium/bidirectional_stream_quic_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 bool BidirectionalStreamQuicImpl::HasSendHeadersComplete() { | 282 bool BidirectionalStreamQuicImpl::HasSendHeadersComplete() { |
| 283 return has_sent_headers_; | 283 return has_sent_headers_; |
| 284 } | 284 } |
| 285 | 285 |
| 286 void BidirectionalStreamQuicImpl::OnCryptoHandshakeConfirmed() { | 286 void BidirectionalStreamQuicImpl::OnCryptoHandshakeConfirmed() { |
| 287 was_handshake_confirmed_ = true; | 287 was_handshake_confirmed_ = true; |
| 288 if (waiting_for_confirmation_) | 288 if (waiting_for_confirmation_) |
| 289 NotifyStreamReady(); | 289 NotifyStreamReady(); |
| 290 } | 290 } |
| 291 | 291 |
| 292 void BidirectionalStreamQuicImpl::OnSuccessfulVersionNegotiation( |
| 293 const QuicVersion& version) {} |
| 294 |
| 292 void BidirectionalStreamQuicImpl::OnSessionClosed( | 295 void BidirectionalStreamQuicImpl::OnSessionClosed( |
| 293 int error, | 296 int error, |
| 294 bool /*port_migration_detected*/) { | 297 bool /*port_migration_detected*/) { |
| 295 DCHECK_NE(OK, error); | 298 DCHECK_NE(OK, error); |
| 296 session_.reset(); | 299 session_.reset(); |
| 297 NotifyError(error); | 300 NotifyError(error); |
| 298 } | 301 } |
| 299 | 302 |
| 300 void BidirectionalStreamQuicImpl::OnStreamReady(int rv) { | 303 void BidirectionalStreamQuicImpl::OnStreamReady(int rv) { |
| 301 DCHECK_NE(ERR_IO_PENDING, rv); | 304 DCHECK_NE(ERR_IO_PENDING, rv); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 if (!stream_) | 353 if (!stream_) |
| 351 return; | 354 return; |
| 352 closed_stream_received_bytes_ = stream_->stream_bytes_read(); | 355 closed_stream_received_bytes_ = stream_->stream_bytes_read(); |
| 353 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); | 356 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); |
| 354 closed_is_first_stream_ = stream_->IsFirstStream(); | 357 closed_is_first_stream_ = stream_->IsFirstStream(); |
| 355 stream_->SetDelegate(nullptr); | 358 stream_->SetDelegate(nullptr); |
| 356 stream_ = nullptr; | 359 stream_ = nullptr; |
| 357 } | 360 } |
| 358 | 361 |
| 359 } // namespace net | 362 } // namespace net |
| OLD | NEW |