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

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

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_status.h ('k') | net/http2/decoder/frame_decoder_state.h » ('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 #include "net/http2/decoder/decode_status.h"
6
7 #include "base/logging.h"
8
9 namespace net {
10
11 std::ostream& operator<<(std::ostream& out, DecodeStatus v) {
12 switch (v) {
13 case DecodeStatus::kDecodeDone:
14 return out << "DecodeDone";
15 case DecodeStatus::kDecodeInProgress:
16 return out << "DecodeInProgress";
17 case DecodeStatus::kDecodeError:
18 return out << "DecodeError";
19 }
20 // Since the value doesn't come over the wire, only a programming bug should
21 // result in reaching this point.
22 int unknown = static_cast<int>(v);
23 LOG(DFATAL) << "Unknown DecodeStatus " << unknown << std::hex << unknown;
24 return out << "UnknownDecodeStatus(" << unknown << ")";
25 }
26
27 } // namespace net
OLDNEW
« no previous file with comments | « net/http2/decoder/decode_status.h ('k') | net/http2/decoder/frame_decoder_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698