| 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" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
| 13 #include "net/http/bidirectional_stream_request_info.h" | 13 #include "net/http/bidirectional_stream_request_info.h" |
| 14 #include "net/quic/quic_connection.h" | 14 #include "net/quic/core/quic_connection.h" |
| 15 #include "net/socket/next_proto.h" | 15 #include "net/socket/next_proto.h" |
| 16 #include "net/spdy/spdy_header_block.h" | 16 #include "net/spdy/spdy_header_block.h" |
| 17 #include "net/spdy/spdy_http_utils.h" | 17 #include "net/spdy/spdy_http_utils.h" |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 | 20 |
| 21 BidirectionalStreamQuicImpl::BidirectionalStreamQuicImpl( | 21 BidirectionalStreamQuicImpl::BidirectionalStreamQuicImpl( |
| 22 const base::WeakPtr<QuicChromiumClientSession>& session) | 22 const base::WeakPtr<QuicChromiumClientSession>& session) |
| 23 : session_(session), | 23 : session_(session), |
| 24 was_handshake_confirmed_(session->IsCryptoHandshakeConfirmed()), | 24 was_handshake_confirmed_(session->IsCryptoHandshakeConfirmed()), |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 void BidirectionalStreamQuicImpl::ResetStream() { | 347 void BidirectionalStreamQuicImpl::ResetStream() { |
| 348 if (!stream_) | 348 if (!stream_) |
| 349 return; | 349 return; |
| 350 closed_stream_received_bytes_ = stream_->stream_bytes_read(); | 350 closed_stream_received_bytes_ = stream_->stream_bytes_read(); |
| 351 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); | 351 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); |
| 352 stream_->SetDelegate(nullptr); | 352 stream_->SetDelegate(nullptr); |
| 353 stream_ = nullptr; | 353 stream_ = nullptr; |
| 354 } | 354 } |
| 355 | 355 |
| 356 } // namespace net | 356 } // namespace net |
| OLD | NEW |