Allow fetchers to watch URLRequestContextGetters for context shutdown.
commit367538330c78771d7a717bee8dc0b3e7461a87a9
authormmenke <mmenke@chromium.org>
Sat, 9 May 2015 15:40:53 +0000 (9 08:40 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 9 May 2015 15:41:21 +0000 (9 15:41 +0000)
tree5de4ff37ed330b4279bf079432d2ce80a95311e0
parentca6cf173aaa4d30878600366e21369366bb9842d
Allow fetchers to watch URLRequestContextGetters for context shutdown.

Fetchers outliving the context they're using has been the main cause of
AssertNoURLRequests crashes.  This will let the ~26
URLRequestContextGetter implementations be responsible for dealing with
lifetime issues, rather than their 160+ consumers.

URLRequestContextGetter subclasses still need to be modified to actually
inform the fetcher of URLRequestContext shutdown.

BUG=471069

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

Cr-Commit-Position: refs/heads/master@{#329046}
net/base/net_error_list.h
net/net.gypi
net/url_request/url_fetcher_core.cc
net/url_request/url_fetcher_core.h
net/url_request/url_fetcher_impl_unittest.cc
net/url_request/url_request_context_getter.cc
net/url_request/url_request_context_getter.h
net/url_request/url_request_context_getter_observer.h [new file with mode: 0644]