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

Issue 448433002: Update HPACK implementation to draft-09 (Closed)

Created:
6 years, 4 months ago by Bence
Modified:
6 years, 4 months ago
Reviewers:
Johnny
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

* Remove the reference set. * Exchange header and static table positions. BUG=400336 This effort is continued on a different code review site, therefore this CL is closed without merging.

Patch Set 1 #

Patch Set 2 : Generate examples_07.hpack. #

Total comments: 18

Patch Set 3 : Fix nits. #

Patch Set 4 : Modify HandleControlFrameHeadersComplete test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -604 lines) Patch
M net/data/spdy_tests/examples_07.hpack View 1 Binary file 0 comments Download
M net/spdy/fuzzing/hpack_fuzz_util_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/spdy/hpack_constants.h View 1 chunk +3 lines, -11 lines 0 comments Download
M net/spdy/hpack_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/hpack_decoder.cc View 1 2 6 chunks +15 lines, -58 lines 0 comments Download
M net/spdy/hpack_decoder_test.cc View 1 2 3 24 chunks +126 lines, -164 lines 0 comments Download
M net/spdy/hpack_encoder.h View 3 chunks +2 lines, -9 lines 0 comments Download
M net/spdy/hpack_encoder.cc View 4 chunks +21 lines, -144 lines 0 comments Download
M net/spdy/hpack_encoder_test.cc View 9 chunks +22 lines, -82 lines 0 comments Download
M net/spdy/hpack_entry.h View 3 chunks +2 lines, -8 lines 0 comments Download
M net/spdy/hpack_entry.cc View 3 chunks +1 line, -5 lines 0 comments Download
M net/spdy/hpack_entry_test.cc View 4 chunks +0 lines, -4 lines 0 comments Download
M net/spdy/hpack_header_table.h View 4 chunks +1 line, -17 lines 0 comments Download
M net/spdy/hpack_header_table.cc View 5 chunks +6 lines, -35 lines 0 comments Download
M net/spdy/hpack_header_table_test.cc View 8 chunks +25 lines, -64 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Johnny
Nice! A bunch of inline comments, but all pretty minor stuff. This ought to land ...
6 years, 4 months ago (2014-08-06 15:04:50 UTC) #1
Bence
https://codereview.chromium.org/448433002/diff/20001/net/spdy/hpack_decoder.cc File net/spdy/hpack_decoder.cc (right): https://codereview.chromium.org/448433002/diff/20001/net/spdy/hpack_decoder.cc#newcode7 net/spdy/hpack_decoder.cc:7: #include <utility> On 2014/08/06 15:04:49, Johnny wrote: > I ...
6 years, 4 months ago (2014-08-06 20:20:23 UTC) #2
Johnny
Still looks good. IMO this is ready to land, just should happen on the internal ...
6 years, 4 months ago (2014-08-07 17:02:23 UTC) #3
Bence
6 years, 4 months ago (2014-08-08 13:57:56 UTC) #4
https://codereview.chromium.org/448433002/diff/20001/net/spdy/hpack_decoder.cc
File net/spdy/hpack_decoder.cc (right):

https://codereview.chromium.org/448433002/diff/20001/net/spdy/hpack_decoder.c...
net/spdy/hpack_decoder.cc:7: #include <utility>
On 2014/08/07 17:02:22, Johnny wrote:
> On 2014/08/06 20:20:22, Bence wrote:
> > On 2014/08/06 15:04:49, Johnny wrote:
> > > I don't see a use of this below?
> > 
> > It's for std::pair.  git cl lint complains if this include is missing.
> 
> Oh, great. SGTM then.

Acknowledged.

https://codereview.chromium.org/448433002/diff/20001/net/spdy/hpack_decoder_t...
File net/spdy/hpack_decoder_test.cc (right):

https://codereview.chromium.org/448433002/diff/20001/net/spdy/hpack_decoder_t...
net/spdy/hpack_decoder_test.cc:122: // fields should not show up in the next
block unless explicitly encoded.
On 2014/08/07 17:02:22, Johnny wrote:
> I'd probably move "\x82\x86" (corrected for the right indices) into L128's
> HandleControlFrameHeadersData, just so that :method and :path expectations
don't
> need to be removed.
> 
> I'm also fine with just dropping it.

Done.

https://codereview.chromium.org/448433002/diff/20001/net/spdy/hpack_encoder.cc
File net/spdy/hpack_encoder.cc (right):

https://codereview.chromium.org/448433002/diff/20001/net/spdy/hpack_encoder.c...
net/spdy/hpack_encoder.cc:41: }
On 2014/08/06 15:04:50, Johnny wrote:
> :pseudo-headers must appear first. I think this Just Works due to the magic of
> ASCII codepoint ordering, but would be good to document the requirement (and
add
> tests for it).

I agree.  I'll do this on a separate CL.

Powered by Google App Engine
This is Rietveld 408576698