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" |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, closure); | 311 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, closure); |
312 } else { | 312 } else { |
313 delegate_tasks_.push_back(closure); | 313 delegate_tasks_.push_back(closure); |
314 } | 314 } |
315 } | 315 } |
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() { |
| 322 return id() == kHeadersStreamId + 2; |
| 323 } |
| 324 |
321 } // namespace net | 325 } // namespace net |
OLD | NEW |