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 <cctype> | 10 #include <cctype> |
11 #include <ios> | 11 #include <ios> |
12 #include <iterator> | 12 #include <iterator> |
13 #include <list> | 13 #include <list> |
14 #include <memory> | 14 #include <memory> |
15 #include <new> | 15 #include <new> |
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/memory/ptr_util.h" | 20 #include "base/memory/ptr_util.h" |
21 #include "base/metrics/histogram_macros.h" | 21 #include "base/metrics/histogram_macros.h" |
22 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
23 #include "net/quic/core/quic_flags.h" | 23 #include "net/quic/platform/api/quic_flags.h" |
24 #include "net/spdy/hpack/hpack_constants.h" | 24 #include "net/spdy/hpack/hpack_constants.h" |
25 #include "net/spdy/hpack/hpack_decoder.h" | 25 #include "net/spdy/hpack/hpack_decoder.h" |
26 #include "net/spdy/hpack/hpack_decoder3.h" | 26 #include "net/spdy/hpack/hpack_decoder3.h" |
27 #include "net/spdy/http2_frame_decoder_adapter.h" | 27 #include "net/spdy/http2_frame_decoder_adapter.h" |
28 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" | 28 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" |
29 #include "net/spdy/platform/api/spdy_string_utils.h" | 29 #include "net/spdy/platform/api/spdy_string_utils.h" |
30 #include "net/spdy/spdy_bitmasks.h" | 30 #include "net/spdy/spdy_bitmasks.h" |
31 #include "net/spdy/spdy_bug_tracker.h" | 31 #include "net/spdy/spdy_bug_tracker.h" |
32 #include "net/spdy/spdy_flags.h" | 32 #include "net/spdy/spdy_flags.h" |
33 #include "net/spdy/spdy_frame_builder.h" | 33 #include "net/spdy/spdy_frame_builder.h" |
(...skipping 2811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2845 builder->WriteUInt32(header_block.size()); | 2845 builder->WriteUInt32(header_block.size()); |
2846 | 2846 |
2847 // Serialize each header. | 2847 // Serialize each header. |
2848 for (const auto& header : header_block) { | 2848 for (const auto& header : header_block) { |
2849 builder->WriteStringPiece32(base::ToLowerASCII(header.first)); | 2849 builder->WriteStringPiece32(base::ToLowerASCII(header.first)); |
2850 builder->WriteStringPiece32(header.second); | 2850 builder->WriteStringPiece32(header.second); |
2851 } | 2851 } |
2852 } | 2852 } |
2853 | 2853 |
2854 } // namespace net | 2854 } // namespace net |
OLD | NEW |