OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/core/quic_headers_stream.h" | 5 #include "net/quic/core/quic_headers_stream.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cstdint> | 8 #include <cstdint> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/metrics/histogram_macros.h" | 13 #include "base/metrics/histogram_macros.h" |
14 #include "base/strings/string_number_conversions.h" | |
15 #include "base/strings/stringprintf.h" | |
16 #include "net/quic/core/quic_bug_tracker.h" | 14 #include "net/quic/core/quic_bug_tracker.h" |
17 #include "net/quic/core/quic_flags.h" | 15 #include "net/quic/core/quic_flags.h" |
18 #include "net/quic/core/quic_header_list.h" | 16 #include "net/quic/core/quic_header_list.h" |
19 #include "net/quic/core/quic_server_session_base.h" | 17 #include "net/quic/core/quic_server_session_base.h" |
20 #include "net/quic/core/quic_spdy_session.h" | 18 #include "net/quic/core/quic_spdy_session.h" |
21 #include "net/quic/core/quic_time.h" | 19 #include "net/quic/core/quic_time.h" |
22 #include "net/quic/platform/api/quic_str_cat.h" | 20 #include "net/quic/platform/api/quic_str_cat.h" |
23 #include "net/spdy/spdy_protocol.h" | 21 #include "net/spdy/spdy_protocol.h" |
24 | 22 |
25 using base::StringPiece; | 23 using base::StringPiece; |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 return true; | 624 return true; |
627 } | 625 } |
628 frame_len_ -= len; | 626 frame_len_ -= len; |
629 // Ignore fin_ while there is more data coming, if frame_len_ > 0. | 627 // Ignore fin_ while there is more data coming, if frame_len_ > 0. |
630 spdy_session_->OnStreamFrameData(stream_id, data, len, | 628 spdy_session_->OnStreamFrameData(stream_id, data, len, |
631 frame_len_ > 0 ? false : fin_); | 629 frame_len_ > 0 ? false : fin_); |
632 return true; | 630 return true; |
633 } | 631 } |
634 | 632 |
635 } // namespace net | 633 } // namespace net |
OLD | NEW |