Report HTTP/2 HEADERS frames as HEADERS, not SYN_STREAM.
commit83a189f34e8b84d6a3c3cee2a42ceec8dc60dbdd
authorbnc <bnc@chromium.org>
Fri, 7 Nov 2014 20:29:43 +0000 (7 12:29 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 7 Nov 2014 20:30:58 +0000 (7 20:30 +0000)
tree72ccbb7ed8bda533887d61dae0cd9640f0458d47
parentce072870c3bae8eccdfaa14e3bd9570ca2de20bf
Report HTTP/2 HEADERS frames as HEADERS, not SYN_STREAM.

Previously, Framer passed HTTP/2 HEADERS frames with priority as SYN_STREAM to the
visitor.  This is not correct because (1) we could get headers opening a stream
with no priority set, (2) HTTP/2 does not have SYN_STREAM frames anyway.

This CL makes the Framer report HTTP/2 HEADERS as HEADERS, and pass priority along.  SPDY/3 functionality is unchanged.

This CL includes server change 79116025 by mlavan (changes to spdy_framer* expect for Patch Set 3), and server change 79432157 by bnc (Patch Set 3).

BUG=345769

Review URL: https://codereview.chromium.org/698323002

Cr-Commit-Position: refs/heads/master@{#303285}
15 files changed:
net/quic/quic_headers_stream.cc
net/quic/quic_headers_stream_test.cc
net/spdy/buffered_spdy_framer.cc
net/spdy/buffered_spdy_framer.h
net/spdy/buffered_spdy_framer_unittest.cc
net/spdy/mock_spdy_framer_visitor.h
net/spdy/spdy_framer.cc
net/spdy/spdy_framer.h
net/spdy/spdy_framer_test.cc
net/spdy/spdy_session.cc
net/spdy/spdy_session.h
net/spdy/spdy_test_util_common.cc
net/tools/flip_server/spdy_interface.cc
net/tools/flip_server/spdy_interface.h
net/tools/flip_server/spdy_interface_test.cc