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/threading/thread_task_runner_handle.h" |
12 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
13 #include "net/http/bidirectional_stream_request_info.h" | 14 #include "net/http/bidirectional_stream_request_info.h" |
14 #include "net/quic/core/quic_connection.h" | 15 #include "net/quic/core/quic_connection.h" |
15 #include "net/socket/next_proto.h" | 16 #include "net/socket/next_proto.h" |
16 #include "net/spdy/spdy_header_block.h" | 17 #include "net/spdy/spdy_header_block.h" |
17 #include "net/spdy/spdy_http_utils.h" | 18 #include "net/spdy/spdy_http_utils.h" |
18 | 19 |
19 namespace net { | 20 namespace net { |
20 | 21 |
21 BidirectionalStreamQuicImpl::BidirectionalStreamQuicImpl( | 22 BidirectionalStreamQuicImpl::BidirectionalStreamQuicImpl( |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 if (!stream_) | 354 if (!stream_) |
354 return; | 355 return; |
355 closed_stream_received_bytes_ = stream_->stream_bytes_read(); | 356 closed_stream_received_bytes_ = stream_->stream_bytes_read(); |
356 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); | 357 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); |
357 closed_is_first_stream_ = stream_->IsFirstStream(); | 358 closed_is_first_stream_ = stream_->IsFirstStream(); |
358 stream_->SetDelegate(nullptr); | 359 stream_->SetDelegate(nullptr); |
359 stream_ = nullptr; | 360 stream_ = nullptr; |
360 } | 361 } |
361 | 362 |
362 } // namespace net | 363 } // namespace net |
OLD | NEW |