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/threading/thread_task_runner_handle.h" |
13 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
14 #include "net/http/bidirectional_stream_request_info.h" | 14 #include "net/http/bidirectional_stream_request_info.h" |
15 #include "net/quic/core/quic_connection.h" | 15 #include "net/quic/core/quic_connection.h" |
16 #include "net/quic/platform/api/quic_string_piece.h" | 16 #include "net/quic/platform/api/quic_string_piece.h" |
17 #include "net/socket/next_proto.h" | 17 #include "net/socket/next_proto.h" |
18 #include "net/spdy/spdy_header_block.h" | 18 #include "net/spdy/chromium/spdy_http_utils.h" |
19 #include "net/spdy/spdy_http_utils.h" | 19 #include "net/spdy/core/spdy_header_block.h" |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 | 22 |
23 BidirectionalStreamQuicImpl::BidirectionalStreamQuicImpl( | 23 BidirectionalStreamQuicImpl::BidirectionalStreamQuicImpl( |
24 const base::WeakPtr<QuicChromiumClientSession>& session) | 24 const base::WeakPtr<QuicChromiumClientSession>& session) |
25 : session_(session), | 25 : session_(session), |
26 was_handshake_confirmed_(session->IsCryptoHandshakeConfirmed()), | 26 was_handshake_confirmed_(session->IsCryptoHandshakeConfirmed()), |
27 stream_(nullptr), | 27 stream_(nullptr), |
28 request_info_(nullptr), | 28 request_info_(nullptr), |
29 delegate_(nullptr), | 29 delegate_(nullptr), |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 if (!stream_) | 355 if (!stream_) |
356 return; | 356 return; |
357 closed_stream_received_bytes_ = stream_->stream_bytes_read(); | 357 closed_stream_received_bytes_ = stream_->stream_bytes_read(); |
358 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); | 358 closed_stream_sent_bytes_ = stream_->stream_bytes_written(); |
359 closed_is_first_stream_ = stream_->IsFirstStream(); | 359 closed_is_first_stream_ = stream_->IsFirstStream(); |
360 stream_->SetDelegate(nullptr); | 360 stream_->SetDelegate(nullptr); |
361 stream_ = nullptr; | 361 stream_ = nullptr; |
362 } | 362 } |
363 | 363 |
364 } // namespace net | 364 } // namespace net |
OLD | NEW |