Descriptionrlz: Add an implementation of PingServer() that uses chrome's net stack.
One can select an implementation via a gyp variable that defaults to wininet
on windows.
PingServer() currently has blocking semantics (it's already called on a thread
in chrome), so the chrome net implementation is that way too. However, when
chrome's net stack is used, an URLRequestContextGetter needs to be passed
to rlz explicitly. That's a bit fishy from an API perspective, but having a 2nd
DNS resolver, proxy cache, etc in chrome just for RLZ felt wrong.
Unfortunately, URLFetcher is currently in chrome's 'content' module, so this
adds a dependency on 'content'. akalin is moving it to 'net', and once that's
done only a dependency on 'net' is required. In the test code, I was careful
to not use BrowserThread, so that the test doesn't depend on 'content' either.
BUG=chromium:117741
TEST=run rlz_unittests on mac with a local server, observe request
Patch Set 1 #
Total comments: 1
Patch Set 2 : . #Patch Set 3 : Forgot test #Patch Set 4 : . #
Total comments: 12
Patch Set 5 : rebase #Patch Set 6 : comments #
Total comments: 1
Patch Set 7 : comment #Patch Set 8 : rebase #Patch Set 9 : . #
Total comments: 5
MessagesTotal messages: 9
|