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

Issue 467963002: Refactoring: Create per-connection packet writers in QuicDispatcher. (Closed)

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

Description

[This CL is abandoned.] Refactoring: Create per-connection packet writers in QuicDispatcher. To make porting the QUIC EndToEndTest to Chromium possible with fewer Chromium-specific parts in shared code, I've made QuicDispatcher expose and accept a QuicDispatcher::PacketWriterFactory which it uses to create a new packet writer wrapper for every QuicConnection. I also changed QuicConnection to accept a QuicConnection::PacketWriterFactory (a second new type of factory) rather than the writer itself in its constructor, since the per-connection packet writers need to be created with the connection already existing. Merge internal CL: 73064412 BUG=

Patch Set 1 #

Patch Set 2 : Fix compilation #

Total comments: 29

Patch Set 3 : Address Wan-Teh's comments #

Total comments: 2

Patch Set 4 : More review comments #

Total comments: 1

Patch Set 5 : Rebase onto ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+683 lines, -170 lines) Patch
M net/net.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M net/quic/quic_blocked_writer_interface.h View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M net/quic/quic_client_session.h View 3 chunks +0 lines, -3 lines 0 comments Download
M net/quic/quic_client_session.cc View 3 chunks +0 lines, -3 lines 0 comments Download
M net/quic/quic_client_session_test.cc View 3 chunks +2 lines, -35 lines 0 comments Download
M net/quic/quic_connection.h View 1 2 3 4 1 chunk +12 lines, -4 lines 0 comments Download
M net/quic/quic_connection.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M net/quic/quic_connection_test.cc View 1 2 3 4 8 chunks +26 lines, -12 lines 0 comments Download
M net/quic/quic_dispatcher.h View 1 2 3 4 5 chunks +54 lines, -16 lines 0 comments Download
M net/quic/quic_dispatcher.cc View 1 4 chunks +28 lines, -11 lines 0 comments Download
M net/quic/quic_http_stream_test.cc View 5 chunks +20 lines, -7 lines 0 comments Download
M net/quic/quic_per_connection_packet_writer.h View 1 2 chunks +7 lines, -6 lines 0 comments Download
M net/quic/quic_per_connection_packet_writer.cc View 3 chunks +9 lines, -6 lines 0 comments Download
M net/quic/quic_server.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/quic_server_session.h View 1 2 chunks +0 lines, -3 lines 0 comments Download
M net/quic/quic_server_session.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M net/quic/quic_server_test.cc View 1 chunk +4 lines, -1 line 0 comments Download
M net/quic/quic_stream_factory.cc View 1 2 3 4 4 chunks +24 lines, -6 lines 0 comments Download
M net/quic/test_tools/mock_quic_dispatcher.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/test_tools/mock_quic_dispatcher.cc View 1 chunk +6 lines, -1 line 0 comments Download
M net/quic/test_tools/quic_connection_peer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/test_tools/quic_test_utils.h View 1 2 3 4 2 chunks +42 lines, -0 lines 0 comments Download
M net/quic/test_tools/quic_test_utils.cc View 1 2 5 chunks +69 lines, -8 lines 0 comments Download
M net/tools/quic/end_to_end_test.cc View 1 2 3 4 5 chunks +15 lines, -5 lines 0 comments Download
M net/tools/quic/quic_client.h View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M net/tools/quic/quic_client.cc View 2 chunks +18 lines, -3 lines 0 comments Download
M net/tools/quic/quic_dispatcher.h View 1 2 4 chunks +53 lines, -15 lines 0 comments Download
M net/tools/quic/quic_dispatcher.cc View 3 chunks +26 lines, -3 lines 0 comments Download
M net/tools/quic/quic_dispatcher_test.cc View 1 3 chunks +8 lines, -6 lines 0 comments Download
A net/tools/quic/quic_per_connection_packet_writer.h View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
A net/tools/quic/quic_per_connection_packet_writer.cc View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
M net/tools/quic/quic_server.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M net/tools/quic/quic_server.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/tools/quic/quic_server_test.cc View 1 chunk +4 lines, -1 line 0 comments Download
M net/tools/quic/test_tools/mock_quic_dispatcher.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/tools/quic/test_tools/mock_quic_dispatcher.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M net/tools/quic/test_tools/packet_dropping_test_writer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/tools/quic/test_tools/quic_dispatcher_peer.h View 1 chunk +5 lines, -1 line 0 comments Download
M net/tools/quic/test_tools/quic_dispatcher_peer.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M net/tools/quic/test_tools/quic_test_utils.h View 2 chunks +42 lines, -0 lines 0 comments Download
M net/tools/quic/test_tools/quic_test_utils.cc View 1 2 5 chunks +69 lines, -8 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
dmz
6 years, 4 months ago (2014-08-13 00:57:56 UTC) #1
wtc
Patch set 2 LGTM. Please make the suggested changes. You can see some of the ...
6 years, 4 months ago (2014-08-13 21:01:35 UTC) #2
dmz
PTAL https://codereview.chromium.org/467963002/diff/20001/net/quic/quic_connection_test.cc File net/quic/quic_connection_test.cc (right): https://codereview.chromium.org/467963002/diff/20001/net/quic/quic_connection_test.cc#newcode429 net/quic/quic_connection_test.cc:429: writer()->set_is_server(is_server); On 2014/08/13 21:01:33, wtc wrote: > > ...
6 years, 4 months ago (2014-08-14 17:22:42 UTC) #3
wtc
Patch set 3 LGTM. 1. Please make the two suggested changes to net/quic/quic_stream_factory.cc and quic_blocked_writer_interface.h. ...
6 years, 4 months ago (2014-08-14 20:05:01 UTC) #4
dmz
Okay, Ryan, could you have a look? I imagine you'll just want to look at ...
6 years, 4 months ago (2014-08-14 21:24:52 UTC) #5
wtc
Patch set 4 LGTM. On 2014/08/14 21:24:52, dmz wrote: > Okay, Ryan, could you have ...
6 years, 4 months ago (2014-08-14 22:23:38 UTC) #6
wtc
Daniel: I have a comment for you below. Ryan: I think it'd be good if ...
6 years, 4 months ago (2014-08-15 22:22:03 UTC) #7
wtc
Daniel, Will you be able to rebase and commit this CL soon? If not, I ...
6 years, 4 months ago (2014-08-21 01:05:02 UTC) #8
dmz
On 2014/08/21 01:05:02, wtc wrote: > Daniel, > > Will you be able to rebase ...
6 years, 3 months ago (2014-08-29 19:03:06 UTC) #9
Ryan Hamilton
Removing myself as a reviewer because I believe this functionality has been added in tip-of-tree.
5 years, 8 months ago (2015-04-01 03:05:53 UTC) #11
Ryan Hamilton
5 years, 8 months ago (2015-04-01 03:06:28 UTC) #13

          

Powered by Google App Engine
This is Rietveld 408576698