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

Side by Side Diff: net/http2/hpack/decoder/hpack_varint_decoder.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
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/decoder/hpack_varint_decoder.h"
6
7 #include <sstream>
8
9 namespace net {
10
11 std::string HpackVarintDecoder::DebugString() const {
12 std::stringstream ss;
13 ss << "HpackVarintDecoder(value=" << value_ << ", offset=" << offset_ << ")";
14 return ss.str();
15 }
16
17 DecodeStatus HpackVarintDecoder::StartForTest(uint8_t prefix_value,
18 uint8_t prefix_mask,
19 DecodeBuffer* db) {
20 return Start(prefix_value, prefix_mask, db);
21 }
22
23 DecodeStatus HpackVarintDecoder::StartExtendedForTest(uint8_t prefix_mask,
24 DecodeBuffer* db) {
25 return StartExtended(prefix_mask, db);
26 }
27
28 DecodeStatus HpackVarintDecoder::ResumeForTest(DecodeBuffer* db) {
29 return Resume(db);
30 }
31
32 std::ostream& operator<<(std::ostream& out, const HpackVarintDecoder& v) {
33 return out << v.DebugString();
34 }
35
36 } // namespace net
OLDNEW
« no previous file with comments | « net/http2/hpack/decoder/hpack_varint_decoder.h ('k') | net/http2/hpack/decoder/hpack_varint_decoder_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698