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

Issue 1320683003: Move logic to figure out if a socket can be reused into HttpStream. (Closed)

Created:
5 years, 3 months ago by mmenke
Modified:
5 years, 3 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move logic to figure out if a socket can be reused into HttpStream. It previously was in HttpNetworkTransaction, which applied the logic to SPDY and QUIC (where it makes no sense) as well as to HTTP. This also removes a couple methods from HttpStream that are no longer needed. BUG=525809 Committed: https://crrev.com/bd84c3906ac0696c38a10aa63a01078943043e65 Cr-Commit-Position: refs/heads/master@{#346908}

Patch Set 1 #

Patch Set 2 : Remove a NOTREACHED #

Patch Set 3 : Remove NOTREACHED #

Patch Set 4 : Fix tests #

Total comments: 4

Patch Set 5 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -168 lines) Patch
M net/http/http_basic_stream.h View 2 chunks +1 line, -5 lines 0 comments Download
M net/http/http_basic_stream.cc View 2 chunks +2 lines, -8 lines 0 comments Download
M net/http/http_network_transaction.cc View 4 chunks +14 lines, -33 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 5 chunks +2 lines, -24 lines 0 comments Download
M net/http/http_response_body_drainer_unittest.cc View 2 chunks +1 line, -4 lines 0 comments Download
M net/http/http_stream.h View 2 chunks +13 lines, -20 lines 1 comment Download
M net/http/http_stream_factory_impl_unittest.cc View 8 chunks +21 lines, -8 lines 0 comments Download
M net/http/http_stream_parser.h View 1 chunk +9 lines, -1 line 0 comments Download
M net/http/http_stream_parser.cc View 2 chunks +8 lines, -3 lines 0 comments Download
M net/http/proxy_connect_redirect_http_stream.h View 2 chunks +1 line, -5 lines 0 comments Download
M net/http/proxy_connect_redirect_http_stream.cc View 1 3 chunks +1 line, -11 lines 0 comments Download
M net/quic/quic_http_stream.h View 1 chunk +1 line, -3 lines 0 comments Download
M net/quic/quic_http_stream.cc View 1 2 3 4 3 chunks +2 lines, -9 lines 0 comments Download
M net/quic/quic_http_stream_test.cc View 1 chunk +2 lines, -7 lines 0 comments Download
M net/spdy/spdy_http_stream.h View 1 chunk +1 line, -3 lines 0 comments Download
M net/spdy/spdy_http_stream.cc View 3 chunks +2 lines, -9 lines 0 comments Download
M net/url_request/url_request_http_job_unittest.cc View 2 chunks +1 line, -5 lines 0 comments Download
M net/websockets/websocket_basic_handshake_stream.h View 1 chunk +1 line, -3 lines 0 comments Download
M net/websockets/websocket_basic_handshake_stream.cc View 3 chunks +1 line, -7 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
mmenke
Ryan: I'm sending these reviews to you because I think you're the QUIC person who ...
5 years, 3 months ago (2015-09-01 18:59:54 UTC) #2
Ryan Hamilton
This is fantastic! LGTM https://codereview.chromium.org/1320683003/diff/60001/net/http/http_network_transaction.cc File net/http/http_network_transaction.cc (right): https://codereview.chromium.org/1320683003/diff/60001/net/http/http_network_transaction.cc#newcode309 net/http/http_network_transaction.cc:309: if (keep_alive && stream_->CanReuseConnection()) { ...
5 years, 3 months ago (2015-09-02 04:42:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320683003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320683003/80001
5 years, 3 months ago (2015-09-02 13:50:18 UTC) #5
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 3 months ago (2015-09-02 14:12:41 UTC) #6
commit-bot: I haz the power
5 years, 3 months ago (2015-09-02 14:13:19 UTC) #7
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bd84c3906ac0696c38a10aa63a01078943043e65
Cr-Commit-Position: refs/heads/master@{#346908}

Powered by Google App Engine
This is Rietveld 408576698