Land Recent QUIC Changes.
commit77b5d50b63b575049688c9ef1edb4b5141f7235d
authorrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 7 May 2014 22:48:48 +0000 (7 22:48 +0000)
committerrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 7 May 2014 22:48:48 +0000 (7 22:48 +0000)
treeff849af6e3d04c94336daed39e83dee93bf76180
parent504fca8eaf5f65db2d3766f40be721639a3097f9
Land Recent QUIC Changes.

Removed QUIC_VERSION_19 from kSupportedQuicVersions. Will
submit a separate CL after making sure all tests pass with
QUIC_VERSION_19.

Introduces QUIC_VERSION_19, connection level flow control.
QuicConnection now has its own flow_controller_ which aggregates bytes
sent/received/consumed from all the streams on a given connection.

WINDOW_UPDATE and BLOCKED frames are sent with a stream_id of 0 when
they refer to the connection.

On receipt of a WINDOW_UPDATE which unblocks the connection level flow
control, all blocked streams are given a chance to write through a call
to OnCanWrite.

QUIC_VERSION_19: connection flow control. Protected behind
--FLAGS_enable_quic_connection_flow_control

Merge internal change: 66020935
https://codereview.chromium.org/265953003/

New QUIC SendAlgorithmInterface which replaces OnPacketAcked,
OnPacketLost, OnPacketAbandoned, and OnRttUpdated with a single
OnCongestionEvent method.

Merge internal change: 66018835
https://codereview.chromium.org/264743011/

Move TransmissionInfo from QuicUnackedPacketMap to QuicProtocol and add
a simple bytes_in_flight accessor.

Merge internal change: 65886839
https://codereview.chromium.org/265993003/

If stream N is added to the write blocked list, and later a
WINDOW_UPDATE frame arrives for the same stream, then stream N will
added for a second time to the write blocked list.

This is wrong - a stream should only be on the write blocked list once.
The write blocked list is implemented as a deque. This CL adds a
parallel set<QuicStreamId> which also keeps track of blocked streams,
but allows more efficient membership testing. This is used to ensure no
duplicate stream IDs end up in the write blocked list.

Don't allow duplicate IDs in QUIC write blocked list.

Merge internal change: 65878293
https://codereview.chromium.org/261983003/

Sync'ing changes with internal source tree. Minor formatting changes.

Merge internal change: 65851919
https://codereview.chromium.org/265813010/

Test-only change to clean up QuicSentPacketManagerTest in order to make
changing the SendAlgorithmInterface easier.

Merge internal change: 65816291
https://codereview.chromium.org/268623010/

R=rch@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268980 0039d316-1c4b-4281-b951-d872f2087c98
40 files changed:
net/quic/congestion_control/fix_rate_sender.cc
net/quic/congestion_control/fix_rate_sender.h
net/quic/congestion_control/fix_rate_test.cc
net/quic/congestion_control/pacing_sender.cc
net/quic/congestion_control/pacing_sender.h
net/quic/congestion_control/pacing_sender_test.cc
net/quic/congestion_control/send_algorithm_interface.h
net/quic/congestion_control/tcp_cubic_sender.cc
net/quic/congestion_control/tcp_cubic_sender.h
net/quic/congestion_control/tcp_cubic_sender_test.cc
net/quic/crypto/quic_crypto_server_config.cc
net/quic/crypto/quic_crypto_server_config.h
net/quic/quic_connection.cc
net/quic/quic_connection.h
net/quic/quic_connection_test.cc
net/quic/quic_data_stream_test.cc
net/quic/quic_flags.cc
net/quic/quic_flags.h
net/quic/quic_flow_controller.cc
net/quic/quic_flow_controller.h
net/quic/quic_http_stream_test.cc
net/quic/quic_protocol.cc
net/quic/quic_protocol.h
net/quic/quic_sent_packet_manager.cc
net/quic/quic_sent_packet_manager.h
net/quic/quic_sent_packet_manager_test.cc
net/quic/quic_session.cc
net/quic/quic_session_test.cc
net/quic/quic_stream_sequencer.cc
net/quic/quic_unacked_packet_map.cc
net/quic/quic_unacked_packet_map.h
net/quic/quic_write_blocked_list.h
net/quic/quic_write_blocked_list_test.cc
net/quic/reliable_quic_stream.cc
net/quic/reliable_quic_stream.h
net/quic/reliable_quic_stream_test.cc
net/quic/test_tools/quic_test_utils.h
net/tools/quic/end_to_end_test.cc
net/tools/quic/quic_dispatcher.cc
net/tools/quic/quic_dispatcher.h