| 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/spdy/spdy_framer.h" | 5 #include "net/spdy/spdy_framer.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <ios> | 10 #include <ios> |
| 11 #include <iterator> | 11 #include <iterator> |
| 12 #include <list> | 12 #include <list> |
| 13 #include <memory> | 13 #include <memory> |
| 14 #include <new> | 14 #include <new> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "base/lazy_instance.h" | 18 #include "base/lazy_instance.h" |
| 19 #include "base/logging.h" | 19 #include "base/logging.h" |
| 20 #include "base/metrics/histogram_macros.h" | 20 #include "base/metrics/histogram_macros.h" |
| 21 #include "net/quic/quic_flags.h" | 21 #include "net/quic/core/quic_flags.h" |
| 22 #include "net/spdy/hpack/hpack_constants.h" | 22 #include "net/spdy/hpack/hpack_constants.h" |
| 23 #include "net/spdy/spdy_bitmasks.h" | 23 #include "net/spdy/spdy_bitmasks.h" |
| 24 #include "net/spdy/spdy_bug_tracker.h" | 24 #include "net/spdy/spdy_bug_tracker.h" |
| 25 #include "net/spdy/spdy_flags.h" | 25 #include "net/spdy/spdy_flags.h" |
| 26 #include "net/spdy/spdy_frame_builder.h" | 26 #include "net/spdy/spdy_frame_builder.h" |
| 27 #include "net/spdy/spdy_frame_reader.h" | 27 #include "net/spdy/spdy_frame_reader.h" |
| 28 #include "net/spdy/spdy_framer_decoder_adapter.h" | 28 #include "net/spdy/spdy_framer_decoder_adapter.h" |
| 29 #include "net/spdy/spdy_headers_block_parser.h" | 29 #include "net/spdy/spdy_headers_block_parser.h" |
| 30 #include "third_party/zlib/zlib.h" | 30 #include "third_party/zlib/zlib.h" |
| 31 | 31 |
| (...skipping 3299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3331 #else | 3331 #else |
| 3332 WriteHeaderBlockToZ(&frame.header_block(), compressor); | 3332 WriteHeaderBlockToZ(&frame.header_block(), compressor); |
| 3333 #endif // defined(USE_SYSTEM_ZLIB) | 3333 #endif // defined(USE_SYSTEM_ZLIB) |
| 3334 | 3334 |
| 3335 int compressed_size = compressed_max_size - compressor->avail_out; | 3335 int compressed_size = compressed_max_size - compressor->avail_out; |
| 3336 builder->Seek(compressed_size); | 3336 builder->Seek(compressed_size); |
| 3337 builder->RewriteLength(*this); | 3337 builder->RewriteLength(*this); |
| 3338 } | 3338 } |
| 3339 | 3339 |
| 3340 } // namespace net | 3340 } // namespace net |
| OLD | NEW |