Reduce/remove usage of BrowserThread in content/browser/loader.
This patch removes usage of BrowserThread for the UI and IO threads from a number of files
in content/browser/loader. I left the navigation_resource_throttle.cc/.h, navigation_url_loader_impl.cc,
navigation_url_loader_impl_core.cc/.h as is. The expectation being these files will not be part of the
network service.
Following changes in this patch.
1. ResourceDispatcherHostImpl maintains a scoped reference to the task runners for the UI and IO threads.
2. We pass the task runners to the classes which need them like ResourceMessageFilter, URLLoaderFactoryImpl, etc.
3. The other changes are mostly removing usage of DCHECK_CURRENTLY_ON and PostTask for BrowserThread. I left BrowserThread::FILE
as is as that is going away soon.
BUG=
598073
Review-Url:
https://codereview.chromium.org/2785523002
Cr-Commit-Position: refs/heads/master@{#461625}
Committed:
https://chromium.googlesource.com/chromium/src/+/a094fc10467ca10732cf02d489565c4d4322890d