| 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/quic_data_stream.h" | 5 #include "net/quic/quic_data_stream.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "net/quic/quic_session.h" | 8 #include "net/quic/quic_session.h" |
| 9 #include "net/quic/quic_spdy_decompressor.h" | 9 #include "net/quic/quic_spdy_decompressor.h" |
| 10 #include "net/quic/quic_utils.h" |
| 10 #include "net/quic/quic_write_blocked_list.h" | 11 #include "net/quic/quic_write_blocked_list.h" |
| 11 | 12 |
| 12 using base::StringPiece; | 13 using base::StringPiece; |
| 13 using std::min; | 14 using std::min; |
| 14 | 15 |
| 15 namespace net { | 16 namespace net { |
| 16 | 17 |
| 17 #define ENDPOINT (session()->is_server() ? "Server: " : " Client: ") | 18 #define ENDPOINT (session()->is_server() ? "Server: " : " Client: ") |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 } | 381 } |
| 381 return total_bytes_parsed; | 382 return total_bytes_parsed; |
| 382 } | 383 } |
| 383 | 384 |
| 384 bool QuicDataStream::FinishedReadingHeaders() { | 385 bool QuicDataStream::FinishedReadingHeaders() { |
| 385 return (headers_id_ != 0 || version() > QUIC_VERSION_12) && | 386 return (headers_id_ != 0 || version() > QUIC_VERSION_12) && |
| 386 headers_decompressed_ && decompressed_headers_.empty(); | 387 headers_decompressed_ && decompressed_headers_.empty(); |
| 387 } | 388 } |
| 388 | 389 |
| 389 } // namespace net | 390 } // namespace net |
| OLD | NEW |