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

Side by Side Diff: net/http2/hpack/http2_hpack_constants.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/hpack/http2_hpack_constants.h ('k') | net/http2/hpack/http2_hpack_constants_test.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 #include "net/http2/hpack/http2_hpack_constants.h"
6
7 #include <sstream>
8
9 namespace net {
10
11 std::string HpackEntryTypeToString(HpackEntryType v) {
12 switch (v) {
13 case HpackEntryType::kIndexedHeader:
14 return "kIndexedHeader";
15 case HpackEntryType::kDynamicTableSizeUpdate:
16 return "kDynamicTableSizeUpdate";
17 case HpackEntryType::kIndexedLiteralHeader:
18 return "kIndexedLiteralHeader";
19 case HpackEntryType::kUnindexedLiteralHeader:
20 return "kUnindexedLiteralHeader";
21 case HpackEntryType::kNeverIndexedLiteralHeader:
22 return "kNeverIndexedLiteralHeader";
23 }
24 std::stringstream ss;
25 ss << "UnknownHpackEntryType(" << static_cast<int>(v) << ")";
26 return ss.str();
27 }
28
29 std::ostream& operator<<(std::ostream& out, HpackEntryType v) {
30 return out << HpackEntryTypeToString(v);
31 }
32
33 } // namespace net
OLDNEW
« no previous file with comments | « net/http2/hpack/http2_hpack_constants.h ('k') | net/http2/hpack/http2_hpack_constants_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698