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

Issue 2299963002: Reland "Change ProxyResolver::GetProxyForURL() to take a unique_ptr<Request>* " (Closed)

Created:
4 years, 3 months ago by maksims (do not use this acc)
Modified:
4 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, Paweł Hajdan Jr., darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland "Change ProxyResolver::GetProxyForURL() to take a unique_ptr<Request>*" Original issue's description: > Change ProxyResolver::GetProxyForURL() to take a scoped_ptr<Request>* rather than a RequestHandle* > > * ProxyResolver::GetProxyForURL() fills a |scoped_pointer<Request>*| > rather than a |void*| > * ProxyResolver::CancelRequest(void*) has been removed. Requests > are instead cancelled by resetting the scoped_ptr<Request>. > > This makes for less error prone code as cancellation of > requests is automatic when the > scoped_ptr<Request> goes out of scope. > ProxyResolver::GetLoadState() is removed and replaced > by Request::GetLoadState(). > > Also made some renaming, as there were similar class > named Job or Request. Now they are all Job and this new thing > is Request. > > Referencing by address to object in vector was not wise in net/proxy/mojo_proxy_resolver_impl_unittest.cc which is now fixed by using scoped_ptrs in that vector. > > BUG=478934 > > Committed: https://crrev.com/a750e126346aa42df1b0cbc2ae6a58abbe7a5069 > Cr-Commit-Position: refs/heads/master@{#377856} BUG=478934 Committed: https://crrev.com/7e15726eca3718f99606e24c67c5794d9cb4a601 Cr-Commit-Position: refs/heads/master@{#426450}

Patch Set 1 : rebased #

Total comments: 3

Patch Set 2 : Fix #

Patch Set 3 : Modify cancellation unittest #

Total comments: 15

Patch Set 4 : rebased... comments #

Patch Set 5 : remove fields proposed by eroman #

Unified diffs Side-by-side diffs Delta from patch set Stats (+735 lines, -763 lines) Patch
M content/browser/resolve_proxy_msg_helper_unittest.cc View 6 chunks +27 lines, -27 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 2 chunks +1 line, -8 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller_unittest.cc View 2 chunks +9 lines, -9 lines 0 comments Download
M net/proxy/mock_proxy_resolver.h View 3 chunks +29 lines, -25 lines 0 comments Download
M net/proxy/mock_proxy_resolver.cc View 2 chunks +44 lines, -38 lines 0 comments Download
M net/proxy/mojo_proxy_resolver_factory_impl_unittest.cc View 1 chunk +1 line, -7 lines 0 comments Download
M net/proxy/mojo_proxy_resolver_impl.cc View 2 chunks +4 lines, -9 lines 0 comments Download
M net/proxy/mojo_proxy_resolver_impl_unittest.cc View 6 chunks +84 lines, -63 lines 0 comments Download
M net/proxy/multi_threaded_proxy_resolver.cc View 6 chunks +26 lines, -39 lines 0 comments Download
M net/proxy/multi_threaded_proxy_resolver_unittest.cc View 11 chunks +12 lines, -19 lines 0 comments Download
M net/proxy/proxy_resolver.h View 2 chunks +7 lines, -10 lines 0 comments Download
M net/proxy/proxy_resolver_factory_mojo.cc View 1 2 3 4 9 chunks +44 lines, -59 lines 0 comments Download
M net/proxy/proxy_resolver_factory_mojo_unittest.cc View 1 2 7 chunks +10 lines, -8 lines 0 comments Download
M net/proxy/proxy_resolver_mac.cc View 3 chunks +2 lines, -15 lines 0 comments Download
M net/proxy/proxy_resolver_perftest.cc View 1 chunk +1 line, -8 lines 0 comments Download
M net/proxy/proxy_resolver_v8_tracing.h View 1 chunk +3 lines, -10 lines 0 comments Download
M net/proxy/proxy_resolver_v8_tracing.cc View 3 chunks +30 lines, -17 lines 0 comments Download
M net/proxy/proxy_resolver_v8_tracing_unittest.cc View 26 chunks +51 lines, -39 lines 0 comments Download
M net/proxy/proxy_resolver_v8_tracing_wrapper.cc View 3 chunks +2 lines, -15 lines 0 comments Download
M net/proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc View 27 chunks +53 lines, -40 lines 0 comments Download
M net/proxy/proxy_resolver_winhttp.cc View 3 chunks +2 lines, -15 lines 0 comments Download
M net/proxy/proxy_service.cc View 8 chunks +9 lines, -24 lines 0 comments Download
M net/proxy/proxy_service_unittest.cc View 1 2 3 65 chunks +276 lines, -251 lines 0 comments Download
M net/url_request/url_request_ftp_job_unittest.cc View 2 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 93 (75 generated)
maksims (do not use this acc)
Can we try to upstream this? I couldn't reproduce the issue. How dangerous is it ...
4 years, 3 months ago (2016-09-02 11:31:03 UTC) #13
maksims (do not use this acc)
Can we try to upstream this? I couldn't reproduce the issue. How dangerous is it ...
4 years, 3 months ago (2016-09-05 06:58:45 UTC) #15
mmenke
On 2016/09/05 06:58:45, maksims wrote: > Can we try to upstream this? I couldn't reproduce ...
4 years, 3 months ago (2016-09-06 14:44:16 UTC) #16
eroman
We absolutely need to understand why this failed the first time before re-landing. Or at ...
4 years, 3 months ago (2016-09-06 20:56:45 UTC) #17
maksims (do not use this acc)
On 2016/09/06 20:56:45, eroman wrote: > We absolutely need to understand why this failed the ...
4 years, 3 months ago (2016-09-20 04:12:50 UTC) #18
maksims (do not use this acc)
boliu@chromium.org: Please review changes in content/ eroman@, please see the fix. https://codereview.chromium.org/2299963002/diff/180001/net/proxy/proxy_resolver_factory_mojo.cc File net/proxy/proxy_resolver_factory_mojo.cc (right): ...
4 years, 2 months ago (2016-10-17 07:28:47 UTC) #61
boliu
On 2016/10/17 07:28:47, maksims wrote: > mailto:boliu@chromium.org: Please review changes in > > content/ rs ...
4 years, 2 months ago (2016-10-17 15:27:59 UTC) #64
eroman
Sam, can you give the *mojo* files a look-over too ? Thanks! https://codereview.chromium.org/2299963002/diff/180001/net/proxy/proxy_resolver_factory_mojo.cc File net/proxy/proxy_resolver_factory_mojo.cc ...
4 years, 2 months ago (2016-10-17 18:29:44 UTC) #66
maksims (do not use this acc)
https://codereview.chromium.org/2299963002/diff/180001/net/proxy/proxy_resolver_factory_mojo.cc File net/proxy/proxy_resolver_factory_mojo.cc (right): https://codereview.chromium.org/2299963002/diff/180001/net/proxy/proxy_resolver_factory_mojo.cc#newcode207 net/proxy/proxy_resolver_factory_mojo.cc:207: job_->CompleteRequest(ERR_PAC_SCRIPT_TERMINATED); On 2016/10/17 18:29:43, eroman wrote: > On 2016/10/17 ...
4 years, 2 months ago (2016-10-18 08:20:58 UTC) #68
maksims (do not use this acc)
A gentle reminder.
4 years, 2 months ago (2016-10-19 07:01:15 UTC) #73
Sam McNally
https://codereview.chromium.org/2299963002/diff/220001/net/proxy/proxy_resolver_factory_mojo.cc File net/proxy/proxy_resolver_factory_mojo.cc (right): https://codereview.chromium.org/2299963002/diff/220001/net/proxy/proxy_resolver_factory_mojo.cc#newcode157 net/proxy/proxy_resolver_factory_mojo.cc:157: class ProxyResolverMojo::RequestImpl : public ProxyResolver::Request { Can we merge ...
4 years, 2 months ago (2016-10-19 07:46:18 UTC) #74
maksims (do not use this acc)
https://codereview.chromium.org/2299963002/diff/220001/net/proxy/proxy_resolver_factory_mojo.cc File net/proxy/proxy_resolver_factory_mojo.cc (right): https://codereview.chromium.org/2299963002/diff/220001/net/proxy/proxy_resolver_factory_mojo.cc#newcode157 net/proxy/proxy_resolver_factory_mojo.cc:157: class ProxyResolverMojo::RequestImpl : public ProxyResolver::Request { On 2016/10/19 07:46:18, ...
4 years, 2 months ago (2016-10-19 10:02:50 UTC) #77
eroman
Thanks @makdisms for reviving this old change! This looks good. I believe you have correctly ...
4 years, 2 months ago (2016-10-19 23:29:35 UTC) #80
Sam McNally
lgtm https://codereview.chromium.org/2299963002/diff/220001/net/proxy/proxy_resolver_factory_mojo.cc File net/proxy/proxy_resolver_factory_mojo.cc (right): https://codereview.chromium.org/2299963002/diff/220001/net/proxy/proxy_resolver_factory_mojo.cc#newcode255 net/proxy/proxy_resolver_factory_mojo.cc:255: if (resolver_) On 2016/10/19 10:02:50, maksims wrote: > ...
4 years, 2 months ago (2016-10-19 23:33:51 UTC) #81
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2299963002/260001
4 years, 2 months ago (2016-10-20 11:12:35 UTC) #88
commit-bot: I haz the power
Committed patchset #5 (id:260001)
4 years, 2 months ago (2016-10-20 11:20:23 UTC) #90
eroman
for the record: committed patchset #5 LGTM
4 years, 2 months ago (2016-10-20 16:47:37 UTC) #91
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:17:25 UTC) #93
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7e15726eca3718f99606e24c67c5794d9cb4a601
Cr-Commit-Position: refs/heads/master@{#426450}

Powered by Google App Engine
This is Rietveld 408576698