Handle ERR_PAC_SCRIPT_TERMINATED in ProxyService.
commit0a74fd9a8fb634aa6e7407afed9fa556fc8ebca2
authorsammc <sammc@chromium.org>
Sat, 25 Apr 2015 05:26:30 +0000 (24 22:26 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 25 Apr 2015 05:26:44 +0000 (25 05:26 +0000)
tree4050115ae738a7e8e48f26fce089e2b64c0beaa2
parentc9f083641d5b6614195aa6561d82776dd668323d
Handle ERR_PAC_SCRIPT_TERMINATED in ProxyService.

If the out-of-process v8 pac resolver crashes, ProxyResolverMojo
returns ERR_PAC_SCRIPT_TERMINATED as its error. This changes
ProxyService to discard its ProxyResolver when that error is returned,
and if other requests were in progress, start reinitializing a new
ProxyResolver.

This also changes ProxyResolverMojo to correctly handle being deleted
while running a CompletionCallback.

BUG=467832

Review URL: https://codereview.chromium.org/1069483003

Cr-Commit-Position: refs/heads/master@{#326960}
net/proxy/proxy_resolver_mojo.cc
net/proxy/proxy_resolver_mojo.h
net/proxy/proxy_resolver_mojo_unittest.cc
net/proxy/proxy_service.cc
net/proxy/proxy_service_unittest.cc