OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/core/http2_frame_decoder_adapter.h" | 5 #include "net/spdy/core/http2_frame_decoder_adapter.h" |
6 | 6 |
7 // Logging policy: If an error in the input is detected, VLOG(n) is used so that | 7 // Logging policy: If an error in the input is detected, VLOG(n) is used so that |
8 // the option exists to debug the situation. Otherwise, this code mostly uses | 8 // the option exists to debug the situation. Otherwise, this code mostly uses |
9 // DVLOG so that the logging does not slow down production code when things are | 9 // DVLOG so that the logging does not slow down production code when things are |
10 // working OK. | 10 // working OK. |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "net/http2/http2_structures.h" | 26 #include "net/http2/http2_structures.h" |
27 #include "net/spdy/core/hpack/hpack_decoder_interface.h" | 27 #include "net/spdy/core/hpack/hpack_decoder_interface.h" |
28 #include "net/spdy/core/hpack/hpack_header_table.h" | 28 #include "net/spdy/core/hpack/hpack_header_table.h" |
29 #include "net/spdy/core/spdy_alt_svc_wire_format.h" | 29 #include "net/spdy/core/spdy_alt_svc_wire_format.h" |
30 #include "net/spdy/core/spdy_bug_tracker.h" | 30 #include "net/spdy/core/spdy_bug_tracker.h" |
31 #include "net/spdy/core/spdy_frame_builder.h" | 31 #include "net/spdy/core/spdy_frame_builder.h" |
32 #include "net/spdy/core/spdy_header_block.h" | 32 #include "net/spdy/core/spdy_header_block.h" |
33 #include "net/spdy/core/spdy_headers_handler_interface.h" | 33 #include "net/spdy/core/spdy_headers_handler_interface.h" |
34 #include "net/spdy/core/spdy_protocol.h" | 34 #include "net/spdy/core/spdy_protocol.h" |
35 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" | 35 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" |
| 36 #include "net/spdy/platform/api/spdy_ptr_util.h" |
36 #include "net/spdy/platform/api/spdy_string.h" | 37 #include "net/spdy/platform/api/spdy_string.h" |
37 | 38 |
38 namespace net { | 39 namespace net { |
39 | 40 |
40 namespace { | 41 namespace { |
41 | 42 |
42 const bool kHasPriorityFields = true; | 43 const bool kHasPriorityFields = true; |
43 const bool kNotHasPriorityFields = false; | 44 const bool kNotHasPriorityFields = false; |
44 | 45 |
45 bool IsPaddable(Http2FrameType type) { | 46 bool IsPaddable(Http2FrameType type) { |
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 bool has_expected_frame_type_ = false; | 988 bool has_expected_frame_type_ = false; |
988 | 989 |
989 // Is the current frame payload destined for |extension_|? | 990 // Is the current frame payload destined for |extension_|? |
990 bool handling_extension_payload_ = false; | 991 bool handling_extension_payload_ = false; |
991 }; | 992 }; |
992 | 993 |
993 } // namespace | 994 } // namespace |
994 | 995 |
995 std::unique_ptr<SpdyFramerDecoderAdapter> CreateHttp2FrameDecoderAdapter( | 996 std::unique_ptr<SpdyFramerDecoderAdapter> CreateHttp2FrameDecoderAdapter( |
996 SpdyFramer* outer_framer) { | 997 SpdyFramer* outer_framer) { |
997 return std::unique_ptr<SpdyFramerDecoderAdapter>( | 998 return SpdyMakeUnique<Http2DecoderAdapter>(outer_framer); |
998 new Http2DecoderAdapter(outer_framer)); | |
999 } | 999 } |
1000 | 1000 |
1001 } // namespace net | 1001 } // namespace net |
OLD | NEW |