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

Issue 21328: Add support to ProxyService for downloading a PAC script on behalf of the Pro... (Closed)

Created:
11 years, 10 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add support to ProxyService for downloading a PAC script on behalf of the ProxyResolver. A ProxyResolver can select this new behavior by subclassing ProxyResolver with |does_fetch = false|. A consequence of this change is that proxy resolve requests are maintained in a queue by ProxyService (rather than implicitly in a queue on the PAC thread's message loop). This simplifies cancellation.This solves issue 7461, and is work-in-progress towards {2764, 74}BUG=7461 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=10197

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 25

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 33

Patch Set 5 : Address Darin's review comments (not tested yet for correctness) #

Total comments: 1

Patch Set 6 : Address some of wtc's comments #

Patch Set 7 : '' #

Patch Set 8 : Merge and resolve conflicts #

Patch Set 9 : Add missing files (for constructor boolean flag fall-out) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+777 lines, -52 lines) Patch
M chrome/browser/net/resolve_proxy_msg_helper_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/proxy/proxy_resolver_mac.h View 1 chunk +2 lines, -0 lines 0 comments Download
M net/proxy/proxy_resolver_winhttp.cc View 7 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_service.h View 1 2 3 4 5 6 7 8 chunks +87 lines, -0 lines 0 comments Download
M net/proxy/proxy_service.cc View 1 2 3 4 5 6 7 9 chunks +234 lines, -48 lines 0 comments Download
M net/proxy/proxy_service_unittest.cc View 3 4 5 6 7 5 chunks +451 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
eroman
Still need to add some new unit tests, but figured I would start this ball ...
11 years, 10 months ago (2009-02-13 00:51:05 UTC) #1
eroman
Oh yeah, and in case it is confusing, ProxyResolverWithoutFetch is intended to be used as ...
11 years, 10 months ago (2009-02-13 00:59:23 UTC) #2
darin (slow to review)
it isn't obvious why the Delegate interface is nicer than CompletionCallback. couldn't you still use ...
11 years, 10 months ago (2009-02-13 01:00:40 UTC) #3
eroman
> it isn't obvious why the Delegate interface is nicer than > CompletionCallback. couldn't you ...
11 years, 10 months ago (2009-02-13 02:01:26 UTC) #4
darin (slow to review)
Yeah, it's true that there is a lot of boilerplate associated with CompletionCallback. I would ...
11 years, 10 months ago (2009-02-13 03:00:10 UTC) #5
eroman
ok, thanks for the explanation. Done. Removed the delegate in favor of CompletionCallback.
11 years, 10 months ago (2009-02-13 03:48:55 UTC) #6
eroman
Ok, updated with the unit tests... enjoy ;-)
11 years, 10 months ago (2009-02-14 01:14:39 UTC) #7
darin (slow to review)
http://codereview.chromium.org/21328/diff/20/1020 File net/proxy/proxy_service.cc (right): http://codereview.chromium.org/21328/diff/20/1020#newcode46 Line 46: // HttpUtil::SpecForRequest. Should probably live in net_util.h +1 ...
11 years, 10 months ago (2009-02-17 20:38:03 UTC) #8
eroman
Thanks for the review! feel free to skim/skip some of my longer responses :-) http://codereview.chromium.org/21328/diff/20/1020 ...
11 years, 10 months ago (2009-02-18 08:02:59 UTC) #9
darin (slow to review)
http://codereview.chromium.org/21328/diff/20/1020 File net/proxy/proxy_service.cc (right): http://codereview.chromium.org/21328/diff/20/1020#newcode489 Line 489: int rv = TryToCompleteSynchronously(req->url_, req->results_); Thanks for taking ...
11 years, 10 months ago (2009-02-18 20:40:47 UTC) #10
darin (slow to review)
LGTM http://codereview.chromium.org/21328/diff/1025/1027 File net/proxy/proxy_service.h (right): http://codereview.chromium.org/21328/diff/1025/1027#newcode366 Line 366: ProxyResolver(bool does_fetch) : does_fetch_(does_fetch) {} i guess ...
11 years, 10 months ago (2009-02-18 20:43:21 UTC) #11
wtc
I already reviewed this CL last week *promptly*, but neglected to publish my comments. Sorry! ...
11 years, 10 months ago (2009-02-19 00:20:22 UTC) #12
eroman
http://codereview.chromium.org/21328/diff/1011/1012 File net/proxy/proxy_service.cc (right): http://codereview.chromium.org/21328/diff/1011/1012#newcode207 Line 207: // TODO(eroman): Rename this to ProxyRequest since it ...
11 years, 10 months ago (2009-02-19 02:21:05 UTC) #13
wtc
http://codereview.chromium.org/21328/diff/1011/1012 File net/proxy/proxy_service.cc (right): http://codereview.chromium.org/21328/diff/1011/1012#newcode230 Line 230: void Query() { On 2009/02/19 02:21:05, eroman wrote: ...
11 years, 10 months ago (2009-02-19 21:18:23 UTC) #14
eroman
Ok, got rid of the network error that was being passed to ProxyResolver, so it ...
11 years, 10 months ago (2009-02-20 02:03:58 UTC) #15
darin (slow to review)
11 years, 10 months ago (2009-02-20 16:03:31 UTC) #16
LGTM

Powered by Google App Engine
This is Rietveld 408576698