QUICHE team | fd50a40 | 2018-12-07 22:54:05 -0500 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef QUICHE_HTTP2_DECODER_DECODE_HTTP2_STRUCTURES_H_ |
| 6 | #define QUICHE_HTTP2_DECODER_DECODE_HTTP2_STRUCTURES_H_ |
| 7 | |
| 8 | // Provides functions for decoding the fixed size structures in the HTTP/2 spec. |
| 9 | |
QUICHE team | 5be974e | 2020-12-29 18:35:24 -0500 | [diff] [blame] | 10 | #include "http2/decoder/decode_buffer.h" |
| 11 | #include "http2/http2_structures.h" |
| 12 | #include "common/platform/api/quiche_export.h" |
QUICHE team | fd50a40 | 2018-12-07 22:54:05 -0500 | [diff] [blame] | 13 | |
| 14 | namespace http2 { |
| 15 | |
| 16 | // DoDecode(STRUCTURE* out, DecodeBuffer* b) decodes the structure from start |
| 17 | // to end, advancing the cursor by STRUCTURE::EncodedSize(). The decode buffer |
| 18 | // must be large enough (i.e. b->Remaining() >= STRUCTURE::EncodedSize()). |
| 19 | |
bnc | 641ace7 | 2020-01-21 12:24:57 -0800 | [diff] [blame] | 20 | QUICHE_EXPORT_PRIVATE void DoDecode(Http2FrameHeader* out, DecodeBuffer* b); |
| 21 | QUICHE_EXPORT_PRIVATE void DoDecode(Http2PriorityFields* out, DecodeBuffer* b); |
| 22 | QUICHE_EXPORT_PRIVATE void DoDecode(Http2RstStreamFields* out, DecodeBuffer* b); |
| 23 | QUICHE_EXPORT_PRIVATE void DoDecode(Http2SettingFields* out, DecodeBuffer* b); |
| 24 | QUICHE_EXPORT_PRIVATE void DoDecode(Http2PushPromiseFields* out, |
| 25 | DecodeBuffer* b); |
| 26 | QUICHE_EXPORT_PRIVATE void DoDecode(Http2PingFields* out, DecodeBuffer* b); |
| 27 | QUICHE_EXPORT_PRIVATE void DoDecode(Http2GoAwayFields* out, DecodeBuffer* b); |
| 28 | QUICHE_EXPORT_PRIVATE void DoDecode(Http2WindowUpdateFields* out, |
| 29 | DecodeBuffer* b); |
| 30 | QUICHE_EXPORT_PRIVATE void DoDecode(Http2AltSvcFields* out, DecodeBuffer* b); |
bnc | bea13b8 | 2021-01-08 08:46:09 -0800 | [diff] [blame] | 31 | QUICHE_EXPORT_PRIVATE void DoDecode(Http2PriorityUpdateFields* out, |
| 32 | DecodeBuffer* b); |
QUICHE team | fd50a40 | 2018-12-07 22:54:05 -0500 | [diff] [blame] | 33 | |
| 34 | } // namespace http2 |
| 35 | |
| 36 | #endif // QUICHE_HTTP2_DECODER_DECODE_HTTP2_STRUCTURES_H_ |