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/chromium/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 NetLogWithSource& net_log) | 27 const NetLogWithSource& net_log) |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 284 |
285 void QuicChromiumClientStream::DisableConnectionMigration() { | 285 void QuicChromiumClientStream::DisableConnectionMigration() { |
286 can_migrate_ = false; | 286 can_migrate_ = false; |
287 } | 287 } |
288 | 288 |
289 bool QuicChromiumClientStream::IsFirstStream() { | 289 bool QuicChromiumClientStream::IsFirstStream() { |
290 return id() == kHeadersStreamId + 2; | 290 return id() == kHeadersStreamId + 2; |
291 } | 291 } |
292 | 292 |
293 } // namespace net | 293 } // namespace net |
OLD | NEW |