| 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 if (delegate_) | 333 if (delegate_) |
| 334 delegate_->OnStreamReady(has_sent_headers_); | 334 delegate_->OnStreamReady(has_sent_headers_); |
| 335 } | 335 } |
| 336 | 336 |
| 337 void BidirectionalStreamQuicImpl::ResetStream() { | 337 void BidirectionalStreamQuicImpl::ResetStream() { |
| 338 if (!stream_) | 338 if (!stream_) |
| 339 return; | 339 return; |
| 340 closed_stream_received_bytes_ = stream_->stream_bytes_read(); | 340 closed_stream_received_bytes_ = stream_->stream_bytes_read(); |
| 341 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); | 341 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); |
| 342 closed_is_first_stream_ = stream_->IsFirstStream(); | 342 closed_is_first_stream_ = stream_->IsFirstStream(); |
| 343 stream_->SetDelegate(nullptr); | 343 stream_->ClearDelegate(); |
| 344 stream_ = nullptr; | 344 stream_ = nullptr; |
| 345 } | 345 } |
| 346 | 346 |
| 347 } // namespace net | 347 } // namespace net |
| OLD | NEW |