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

Issue 6516026: AU: Make proxy resolution asynchronous. (Closed)

Created:
9 years, 10 months ago by adlr
Modified:
9 years ago
Reviewers:
petkov
CC:
chromium-os-reviews_chromium.org, petkov, adlr
Visibility:
Public.

Description

AU: Make proxy resolution asynchronous. This doesn't change proxy resolution overall (we still use settings stored in the session manager), but it changes the implementation in the updater to be asynchronous. The clients of the proxy resolver now give a callback to be called when the proxies are known. This is anticipation of a switch to using Chrome to resolve proxies, which will need to be asynchronous. BUG=chromium-os:12079 TEST=unittests; tested update on device w/ and w/o proxy settings Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=f3ed8e7

Patch Set 1 #

Total comments: 12

Patch Set 2 : fixes for review #

Patch Set 3 : fix utils.* include paths #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -45 lines) Patch
M chrome_proxy_resolver.h View 2 chunks +12 lines, -1 line 0 comments Download
M chrome_proxy_resolver.cc View 2 chunks +27 lines, -8 lines 0 comments Download
M chrome_proxy_resolver_unittest.cc View 2 chunks +16 lines, -5 lines 0 comments Download
M http_fetcher.h View 1 4 chunks +22 lines, -4 lines 0 comments Download
M http_fetcher.cc View 2 chunks +22 lines, -5 lines 0 comments Download
M http_fetcher_unittest.cc View 1 chunk +3 lines, -6 lines 0 comments Download
M libcurl_http_fetcher.h View 1 chunk +4 lines, -0 lines 0 comments Download
M libcurl_http_fetcher.cc View 2 chunks +14 lines, -2 lines 0 comments Download
M proxy_resolver.h View 1 2 chunks +28 lines, -10 lines 0 comments Download
M proxy_resolver.cc View 1 chunk +25 lines, -4 lines 0 comments Download
M utils.h View 2 1 chunk +3 lines, -0 lines 0 comments Download
M utils.cc View 2 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
adlr
9 years, 10 months ago (2011-02-14 21:22:28 UTC) #1
petkov
mostly white-space nits, LGTM otherwise. honestly, this CL made my head spin :/ http://codereview.chromium.org/6516026/diff/1/http_fetcher.h File ...
9 years, 10 months ago (2011-02-14 22:13:50 UTC) #2
adlr
Yeah, I know it's tricky. I basically changed a "leaf" function to be async, and ...
9 years, 10 months ago (2011-02-16 18:18:22 UTC) #3
petkov
9 years, 10 months ago (2011-02-16 18:32:04 UTC) #4
Yeah, it's fine. It almost feels like if you didn't use protobuf's Closure and
other abstractions the code might have been simpler but I didn't look/follow
deeply enough to be sure.

Powered by Google App Engine
This is Rietveld 408576698