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

Issue 2822043: Add the capability to run multiple proxy PAC scripts in parallel.... (Closed)

Created:
10 years, 5 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add the capability to run multiple proxy PAC scripts in parallel. Refactors SingleThreadedProxyResolver into MultiThreadedProxyResolver. New threads are created lazily on demand, up to a fixed maximum. Note that this CL does NOT change the policy in Chrome -- it will continue to use a single thread for proxy resolving, but using the new code to do so. BUG=11079 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51924

Patch Set 1 #

Patch Set 2 : sync and merge conflicts #

Patch Set 3 : do file moves #

Patch Set 4 : fix some style problems #

Patch Set 5 : make deadlock handling less nasty #

Patch Set 6 : '' #

Total comments: 74

Patch Set 7 : Address willchan's comments #

Patch Set 8 : moar fix #

Total comments: 5

Patch Set 9 : SYNC (no changes) #

Patch Set 10 : bake in Shutdown() to interface #

Patch Set 11 : '' #

Patch Set 12 : fix a race in unittest #

Patch Set 13 : Re-upload after revert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+997 lines, -1318 lines) Patch
M net/base/host_resolver.h View 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M net/base/host_resolver_impl.h View 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M net/base/net_log_event_type_list.h View 3 4 5 6 7 8 9 10 11 12 1 chunk +11 lines, -2 lines 0 comments Download
M net/net.gyp View 3 4 5 6 7 8 9 10 11 12 4 chunks +3 lines, -3 lines 0 comments Download
A + net/proxy/multi_threaded_proxy_resolver.h View 3 4 5 6 7 8 9 10 11 12 3 chunks +94 lines, -44 lines 0 comments Download
A + net/proxy/multi_threaded_proxy_resolver.cc View 3 4 5 6 7 8 9 10 11 12 2 chunks +439 lines, -204 lines 0 comments Download
A + net/proxy/multi_threaded_proxy_resolver_unittest.cc View 3 4 5 6 7 8 9 10 11 12 11 chunks +327 lines, -61 lines 0 comments Download
M net/proxy/proxy_resolver.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M net/proxy/proxy_resolver_js_bindings.h View 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M net/proxy/proxy_resolver_js_bindings.cc View 5 6 7 8 9 10 11 12 1 chunk +5 lines, -1 line 0 comments Download
M net/proxy/proxy_resolver_v8.h View 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M net/proxy/proxy_resolver_v8.cc View 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M net/proxy/proxy_resolver_v8_unittest.cc View 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M net/proxy/proxy_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -4 lines 0 comments Download
M net/proxy/proxy_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +61 lines, -35 lines 0 comments Download
D net/proxy/single_threaded_proxy_resolver.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -94 lines 0 comments Download
D net/proxy/single_threaded_proxy_resolver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -353 lines 0 comments Download
D net/proxy/single_threaded_proxy_resolver_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -476 lines 0 comments Download
M net/proxy/sync_host_resolver_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +1 line, -18 lines 0 comments Download
M net/proxy/sync_host_resolver_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -15 lines 0 comments Download
M net/proxy/sync_host_resolver_bridge_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +38 lines, -7 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
eroman
10 years, 5 months ago (2010-07-01 22:22:34 UTC) #1
eroman
I have updated the CL now with the file renames.
10 years, 5 months ago (2010-07-01 23:25:03 UTC) #2
willchan no longer on Chromium
On 2010/07/01 23:25:03, eroman wrote: > I have updated the CL now with the file ...
10 years, 5 months ago (2010-07-06 16:55:30 UTC) #3
willchan no longer on Chromium
It took me a few hours to get 90% of this into memory. I think ...
10 years, 5 months ago (2010-07-06 21:01:59 UTC) #4
eroman
Thanks for the careful review http://codereview.chromium.org/2822043/diff/49001/50003 File net/proxy/multi_threaded_proxy_resolver.cc (right): http://codereview.chromium.org/2822043/diff/49001/50003#newcode18 net/proxy/multi_threaded_proxy_resolver.cc:18: // TODO(eroman): If you ...
10 years, 5 months ago (2010-07-07 17:19:08 UTC) #5
willchan no longer on Chromium
http://codereview.chromium.org/2822043/diff/49001/50003 File net/proxy/multi_threaded_proxy_resolver.cc (right): http://codereview.chromium.org/2822043/diff/49001/50003#newcode458 net/proxy/multi_threaded_proxy_resolver.cc:458: // being duplicated by each of the resolver threads). ...
10 years, 5 months ago (2010-07-07 18:15:36 UTC) #6
eroman
http://codereview.chromium.org/2822043/diff/49001/50003 File net/proxy/multi_threaded_proxy_resolver.cc (right): http://codereview.chromium.org/2822043/diff/49001/50003#newcode458 net/proxy/multi_threaded_proxy_resolver.cc:458: // being duplicated by each of the resolver threads). ...
10 years, 5 months ago (2010-07-07 20:57:21 UTC) #7
willchan no longer on Chromium
http://codereview.chromium.org/2822043/diff/49001/50003 File net/proxy/multi_threaded_proxy_resolver.cc (right): http://codereview.chromium.org/2822043/diff/49001/50003#newcode458 net/proxy/multi_threaded_proxy_resolver.cc:458: // being duplicated by each of the resolver threads). ...
10 years, 5 months ago (2010-07-07 21:30:25 UTC) #8
eroman
http://codereview.chromium.org/2822043/diff/48002/11008 File net/proxy/multi_threaded_proxy_resolver_unittest.cc (right): http://codereview.chromium.org/2822043/diff/48002/11008#newcode658 net/proxy/multi_threaded_proxy_resolver_unittest.cc:658: On 2010/07/07 21:30:25, willchan wrote: > On 2010/07/07 20:57:21, ...
10 years, 5 months ago (2010-07-07 21:48:44 UTC) #9
willchan no longer on Chromium
10 years, 5 months ago (2010-07-07 22:36:21 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld 408576698