OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/quic_chromium_client_stream.h" | 5 #include "net/quic/chromium/quic_chromium_client_stream.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "net/base/io_buffer.h" | 13 #include "net/base/io_buffer.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 #include "net/log/net_log_event_type.h" | 15 #include "net/log/net_log_event_type.h" |
16 #include "net/quic/chromium/quic_chromium_client_session.h" | 16 #include "net/quic/chromium/quic_chromium_client_session.h" |
17 #include "net/quic/core/quic_http_utils.h" | 17 #include "net/quic/core/quic_http_utils.h" |
18 #include "net/quic/core/quic_spdy_session.h" | 18 #include "net/quic/core/quic_spdy_session.h" |
19 #include "net/quic/core/quic_write_blocked_list.h" | 19 #include "net/quic/core/quic_write_blocked_list.h" |
20 #include "net/quic/core/spdy_utils.h" | 20 #include "net/quic/core/spdy_utils.h" |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 | 23 |
24 QuicChromiumClientStream::QuicChromiumClientStream( | 24 QuicChromiumClientStream::QuicChromiumClientStream( |
25 QuicStreamId id, | 25 QuicStreamId id, |
26 QuicClientSessionBase* session, | 26 QuicClientSessionBase* session, |
27 const BoundNetLog& net_log) | 27 const NetLogWithSource& net_log) |
28 : QuicSpdyStream(id, session), | 28 : QuicSpdyStream(id, session), |
29 net_log_(net_log), | 29 net_log_(net_log), |
30 delegate_(nullptr), | 30 delegate_(nullptr), |
31 headers_delivered_(false), | 31 headers_delivered_(false), |
32 session_(session), | 32 session_(session), |
33 can_migrate_(true), | 33 can_migrate_(true), |
34 weak_factory_(this) {} | 34 weak_factory_(this) {} |
35 | 35 |
36 QuicChromiumClientStream::~QuicChromiumClientStream() { | 36 QuicChromiumClientStream::~QuicChromiumClientStream() { |
37 if (delegate_) | 37 if (delegate_) |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 | 316 |
317 void QuicChromiumClientStream::DisableConnectionMigration() { | 317 void QuicChromiumClientStream::DisableConnectionMigration() { |
318 can_migrate_ = false; | 318 can_migrate_ = false; |
319 } | 319 } |
320 | 320 |
321 bool QuicChromiumClientStream::IsFirstStream() { | 321 bool QuicChromiumClientStream::IsFirstStream() { |
322 return id() == kHeadersStreamId + 2; | 322 return id() == kHeadersStreamId + 2; |
323 } | 323 } |
324 | 324 |
325 } // namespace net | 325 } // namespace net |
OLD | NEW |