Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: net/http2/decoder/decode_status.h

Issue 2554683003: Revert of Add new HTTP/2 and HPACK decoder in net/http2/. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/http2/decoder/decode_http2_structures_test.cc ('k') | net/http2/decoder/decode_status.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 NET_HTTP2_DECODER_DECODE_STATUS_H_
6 #define NET_HTTP2_DECODER_DECODE_STATUS_H_
7
8 // Enum DecodeStatus is used to report the status of decoding of many
9 // types of HTTP/2 and HPACK objects.
10
11 #include <ostream>
12
13 #include "net/base/net_export.h"
14
15 namespace net {
16
17 enum class DecodeStatus {
18 // Decoding is done.
19 kDecodeDone,
20
21 // Decoder needs more input to be able to make progress.
22 kDecodeInProgress,
23
24 // Decoding failed (e.g. HPACK variable length integer is too large, or
25 // an HTTP/2 frame has padding declared to be larger than the payload).
26 kDecodeError,
27 };
28 NET_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& out, DecodeStatus v);
29
30 } // namespace net
31
32 #endif // NET_HTTP2_DECODER_DECODE_STATUS_H_
OLDNEW
« no previous file with comments | « net/http2/decoder/decode_http2_structures_test.cc ('k') | net/http2/decoder/decode_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698