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

Issue 1747013002: Revert of Change ProxyResolver::GetProxyForURL() to take a scoped_ptr<Request>* rather than a Reque… (Closed)

Created:
4 years, 9 months ago by eroman
Modified:
4 years, 9 months ago
Reviewers:
davidben, Olli Raula
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@2661
Target Ref:
refs/pending/branch-heads/2661
Project:
chromium
Visibility:
Public.

Description

Revert of Change ProxyResolver::GetProxyForURL() to take a scoped_ptr<Request>* rather than a RequestHandle* (patchset #11 id:200001 of https://codereview.chromium.org/1439053002/ ) Reason for revert: Top crasher on Canary has PAC script cancellation on callstack. Very likely a bug or interaction with this CL. Reverting until I have a chance to fully investigate. 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} TBR=davidben@chromium.org,olli.raula@intel.com BUG=478934 Review URL: https://codereview.chromium.org/1745133002 Cr-Commit-Position: refs/heads/master@{#378274} (cherry picked from commit 9c8f42482a36ed8f614e1ae35eb137300cdbe6eb) Committed: https://chromium.googlesource.com/chromium/src/+/4c6ac2e78a90356f0a304b7126ecc050d3a07f1f

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+721 lines, -696 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 +8 lines, -1 line 0 comments Download
M net/proxy/mock_proxy_resolver.h View 4 chunks +25 lines, -29 lines 0 comments Download
M net/proxy/mock_proxy_resolver.cc View 2 chunks +40 lines, -45 lines 0 comments Download
M net/proxy/mojo_proxy_resolver_factory_impl_unittest.cc View 1 chunk +7 lines, -1 line 0 comments Download
M net/proxy/mojo_proxy_resolver_impl.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M net/proxy/mojo_proxy_resolver_impl_unittest.cc View 6 chunks +62 lines, -81 lines 0 comments Download
M net/proxy/multi_threaded_proxy_resolver.cc View 6 chunks +39 lines, -30 lines 0 comments Download
M net/proxy/multi_threaded_proxy_resolver_unittest.cc View 11 chunks +19 lines, -12 lines 0 comments Download
M net/proxy/proxy_resolver.h View 2 chunks +10 lines, -8 lines 0 comments Download
M net/proxy/proxy_resolver_factory_mojo.cc View 7 chunks +42 lines, -55 lines 0 comments Download
M net/proxy/proxy_resolver_factory_mojo_unittest.cc View 6 chunks +8 lines, -8 lines 0 comments Download
M net/proxy/proxy_resolver_mac.cc View 3 chunks +15 lines, -2 lines 0 comments Download
M net/proxy/proxy_resolver_perftest.cc View 1 chunk +8 lines, -1 line 0 comments Download
M net/proxy/proxy_resolver_v8_tracing.h View 1 chunk +10 lines, -3 lines 0 comments Download
M net/proxy/proxy_resolver_v8_tracing.cc View 3 chunks +17 lines, -30 lines 0 comments Download
M net/proxy/proxy_resolver_v8_tracing_unittest.cc View 26 chunks +39 lines, -51 lines 0 comments Download
M net/proxy/proxy_resolver_v8_tracing_wrapper.cc View 3 chunks +15 lines, -2 lines 0 comments Download
M net/proxy/proxy_resolver_v8_tracing_wrapper_unittest.cc View 27 chunks +40 lines, -52 lines 0 comments Download
M net/proxy/proxy_resolver_winhttp.cc View 3 chunks +15 lines, -2 lines 0 comments Download
M net/proxy/proxy_service.cc View 8 chunks +25 lines, -8 lines 0 comments Download
M net/proxy/proxy_service_unittest.cc View 63 chunks +235 lines, -237 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: 3 (1 generated)
eroman
Committed patchset #1 (id:1) manually as 4c6ac2e78a90356f0a304b7126ecc050d3a07f1f.
4 years, 9 months ago (2016-02-29 22:26:14 UTC) #2
Olli Raula
4 years, 9 months ago (2016-02-29 22:26:24 UTC) #3
Message was sent while issue was closed.
I am not working here anymore, to contact me, email to firstname@lastname.org

Powered by Google App Engine
This is Rietveld 408576698