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

Unified Diff: net/spdy/core/hpack/hpack_huffman_decoder.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/core/hpack/hpack_huffman_decoder.h ('k') | net/spdy/core/hpack/hpack_huffman_decoder_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/core/hpack/hpack_huffman_decoder.cc
diff --git a/net/spdy/core/hpack/hpack_huffman_decoder.cc b/net/spdy/core/hpack/hpack_huffman_decoder.cc
index 85135795dfb16054db7ca9bb431e3dd637daf569..d1e998dcdc753fd6f44b3423ff53286a6924b7a7 100644
--- a/net/spdy/core/hpack/hpack_huffman_decoder.cc
+++ b/net/spdy/core/hpack/hpack_huffman_decoder.cc
@@ -35,8 +35,8 @@
namespace net {
namespace {
-typedef HpackHuffmanDecoder::HuffmanWord HuffmanWord;
-typedef HpackHuffmanDecoder::HuffmanCodeLength HuffmanCodeLength;
+typedef SpdyHpackHuffmanDecoder::HuffmanWord HuffmanWord;
+typedef SpdyHpackHuffmanDecoder::HuffmanCodeLength HuffmanCodeLength;
const HuffmanCodeLength kHuffmanWordLength =
std::numeric_limits<HuffmanWord>::digits;
@@ -180,8 +180,8 @@ bool IsEOSPrefix(HuffmanWord bits, HuffmanCodeLength bits_available) {
// TODO(jamessynge): Is this being inlined by the compiler? Should we inline
// into DecodeString the tests for code lengths 5 through 8 (> 99% of codes
// according to the HPACK spec)?
-HpackHuffmanDecoder::HuffmanCodeLength HpackHuffmanDecoder::CodeLengthOfPrefix(
- HpackHuffmanDecoder::HuffmanWord value) {
+SpdyHpackHuffmanDecoder::HuffmanCodeLength SpdyHpackHuffmanDecoder::CodeLengthOfPrefix(
+ SpdyHpackHuffmanDecoder::HuffmanWord value) {
HuffmanCodeLength length;
if (value < 0xb8000000) {
if (value < 0x50000000) {
@@ -267,7 +267,7 @@ HpackHuffmanDecoder::HuffmanCodeLength HpackHuffmanDecoder::CodeLengthOfPrefix(
return length;
}
-HuffmanWord HpackHuffmanDecoder::DecodeToCanonical(
+HuffmanWord SpdyHpackHuffmanDecoder::DecodeToCanonical(
HuffmanCodeLength code_length,
HuffmanWord bits) {
DCHECK_LE(kMinCodeLength, code_length);
@@ -292,7 +292,7 @@ HuffmanWord HpackHuffmanDecoder::DecodeToCanonical(
return first_canonical + ordinal_in_length;
}
-uint8_t HpackHuffmanDecoder::CanonicalToSource(HuffmanWord canonical) {
+uint8_t SpdyHpackHuffmanDecoder::CanonicalToSource(HuffmanWord canonical) {
DCHECK_LT(canonical, 256u);
return kCanonicalToSymbol[canonical];
}
@@ -303,7 +303,7 @@ uint8_t HpackHuffmanDecoder::CanonicalToSource(HuffmanWord canonical) {
// long strings, and a later portion dealing with the last few bytes of strings.
// TODO(jamessynge): Determine if that is worth it by adding some counters to
// measure the distribution of string sizes seen in practice.
-bool HpackHuffmanDecoder::DecodeString(HpackInputStream* in, SpdyString* out) {
+bool SpdyHpackHuffmanDecoder::DecodeString(HpackInputStream* in, SpdyString* out) {
out->clear();
// Load |bits| with the leading bits of the input stream, left justified
« no previous file with comments | « net/spdy/core/hpack/hpack_huffman_decoder.h ('k') | net/spdy/core/hpack/hpack_huffman_decoder_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698