Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Issue 1051023003: Change ClientSocketPoolManager::InitSocketHandleForHttpRequest and friends (Closed)

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

Description

Change ClientSocketPoolManager::InitSocketHandleForHttpRequest and friends to not take a request_url, since this is confusing for Alternate-Protocol and Alt-Svc requests. Instead, take an enum which describes the type of socket to be requested (FTP, SSL, or normal) and endpoint to which the socket is to be connected. Committed: https://crrev.com/c5c07de291701d5e055d20a2a22f7065baeabdc0 Cr-Commit-Position: refs/heads/master@{#324196}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Fix comments #

Total comments: 8

Patch Set 3 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -58 lines) Patch
M net/http/http_stream_factory_impl_job.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 4 chunks +15 lines, -7 lines 0 comments Download
M net/socket/client_socket_pool_manager.h View 1 2 4 chunks +20 lines, -3 lines 0 comments Download
M net/socket/client_socket_pool_manager.cc View 1 2 9 chunks +57 lines, -48 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
Ryan Hamilton
mmenke: Hopefully this CL is small enough that you can take a look. If not, ...
5 years, 8 months ago (2015-04-06 15:16:03 UTC) #2
mmenke
On 2015/04/06 15:16:03, Ryan Hamilton wrote: > mmenke: Hopefully this CL is small enough that ...
5 years, 8 months ago (2015-04-06 15:57:05 UTC) #3
Ryan Hamilton
On 2015/04/06 15:57:05, mmenke wrote: > On 2015/04/06 15:16:03, Ryan Hamilton wrote: > > mmenke: ...
5 years, 8 months ago (2015-04-06 16:08:14 UTC) #4
mmenke
This seems really confusing, particularly as it interacts with the force_spdy_over_ssl, want_spdy_over_npn flags, and alternate ...
5 years, 8 months ago (2015-04-07 16:36:59 UTC) #5
Ryan Hamilton
Thanks! https://codereview.chromium.org/1051023003/diff/1/net/http/http_stream_factory_impl_job.cc File net/http/http_stream_factory_impl_job.cc (right): https://codereview.chromium.org/1051023003/diff/1/net/http/http_stream_factory_impl_job.cc#newcode631 net/http/http_stream_factory_impl_job.cc:631: // TODO(rch): change the socket pool API to ...
5 years, 8 months ago (2015-04-07 19:07:31 UTC) #6
mmenke
Quick responses. Think I'll have time to do a full (Hopefully final) pass today, but ...
5 years, 8 months ago (2015-04-07 19:24:16 UTC) #7
mmenke
LGTM, modulo comments. Once you remove the force_spdy_over_ssl flag, could also consider just passing in ...
5 years, 8 months ago (2015-04-07 20:27:33 UTC) #8
Ryan Hamilton
Thanks! re. passing in scheme: I'm not thrilled with that idea because in the alt-svc ...
5 years, 8 months ago (2015-04-08 03:44:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1051023003/60001
5 years, 8 months ago (2015-04-08 03:45:17 UTC) #13
mmenke
On 2015/04/08 03:44:46, Ryan Hamilton wrote: > Thanks! > > re. passing in scheme: I'm ...
5 years, 8 months ago (2015-04-08 03:52:30 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 8 months ago (2015-04-08 07:28:29 UTC) #15
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c5c07de291701d5e055d20a2a22f7065baeabdc0 Cr-Commit-Position: refs/heads/master@{#324196}
5 years, 8 months ago (2015-04-08 07:29:15 UTC) #16
Ryan Hamilton
5 years, 8 months ago (2015-04-08 14:17:11 UTC) #17
Message was sent while issue was closed.
On 2015/04/08 03:52:30, mmenke wrote:
> Another option would be to just inline
> ClientSocketPoolManager::GroupTypeFromScheme...  If it's not the scheme of the
> actual request that determines scheme, and it's only the Job that knows how to
> determine type, maybe all the logic should go there?
> 
> Anyhow, still LGTM.

Oh, good idea. URL: https://codereview.chromium.org/1069413002

Powered by Google App Engine
This is Rietveld 408576698