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/core/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/platform/api/quic_flags.h" | 23 #include "net/quic/platform/api/quic_flags.h" |
24 #include "net/spdy/hpack/hpack_constants.h" | 24 #include "net/spdy/chromium/spdy_flags.h" |
25 #include "net/spdy/hpack/hpack_decoder.h" | 25 #include "net/spdy/core/hpack/hpack_constants.h" |
26 #include "net/spdy/hpack/hpack_decoder3.h" | 26 #include "net/spdy/core/hpack/hpack_decoder.h" |
27 #include "net/spdy/http2_frame_decoder_adapter.h" | 27 #include "net/spdy/core/hpack/hpack_decoder3.h" |
| 28 #include "net/spdy/core/http2_frame_decoder_adapter.h" |
| 29 #include "net/spdy/core/spdy_bitmasks.h" |
| 30 #include "net/spdy/core/spdy_bug_tracker.h" |
| 31 #include "net/spdy/core/spdy_frame_builder.h" |
| 32 #include "net/spdy/core/spdy_frame_reader.h" |
| 33 #include "net/spdy/core/spdy_framer_decoder_adapter.h" |
28 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" | 34 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" |
29 #include "net/spdy/platform/api/spdy_string_utils.h" | 35 #include "net/spdy/platform/api/spdy_string_utils.h" |
30 #include "net/spdy/spdy_bitmasks.h" | |
31 #include "net/spdy/spdy_bug_tracker.h" | |
32 #include "net/spdy/spdy_flags.h" | |
33 #include "net/spdy/spdy_frame_builder.h" | |
34 #include "net/spdy/spdy_frame_reader.h" | |
35 #include "net/spdy/spdy_framer_decoder_adapter.h" | |
36 | 36 |
37 using std::vector; | 37 using std::vector; |
38 | 38 |
39 namespace net { | 39 namespace net { |
40 | 40 |
41 namespace { | 41 namespace { |
42 | 42 |
43 // Pack parent stream ID and exclusive flag into the format used by HTTP/2 | 43 // Pack parent stream ID and exclusive flag into the format used by HTTP/2 |
44 // headers and priority frames. | 44 // headers and priority frames. |
45 uint32_t PackStreamDependencyValues(bool exclusive, | 45 uint32_t PackStreamDependencyValues(bool exclusive, |
(...skipping 2903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2949 builder->WriteUInt32(header_block.size()); | 2949 builder->WriteUInt32(header_block.size()); |
2950 | 2950 |
2951 // Serialize each header. | 2951 // Serialize each header. |
2952 for (const auto& header : header_block) { | 2952 for (const auto& header : header_block) { |
2953 builder->WriteStringPiece32(base::ToLowerASCII(header.first)); | 2953 builder->WriteStringPiece32(base::ToLowerASCII(header.first)); |
2954 builder->WriteStringPiece32(header.second); | 2954 builder->WriteStringPiece32(header.second); |
2955 } | 2955 } |
2956 } | 2956 } |
2957 | 2957 |
2958 } // namespace net | 2958 } // namespace net |
OLD | NEW |