Support file:// URLs with Network Service enabled

Enables file:// URLs to work for both navigation and (where
appropriate) subresource requests when the Network Service is enabled,
without any dependency on the legacy net URL request path.

This is done by implementing a new URLLoaderFactory to handle file
requests and hooking it into both NavigationURLLoaderNetworkService
and an entry in any URLLoaderFactoryBundle sent to a frame being
navigated to a file:// resource.

Bug: 759230
Cq-Include-Trybots: master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.linux:linux_site_isolation;master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.linux:linux_mojo
Change-Id: I74052a320ee3db493fc2892481ae6a4b3ebcbb63
Reviewed-on: https://chromium-review.googlesource.com/742652
Commit-Queue: Ken Rockot <rockot@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#514071}

CrOS-Libchrome-Original-Commit: 314714c736ac5966f73716a66c69321bc5f7fa81
3 files changed
tree: c6f6e6ee837dffbd70c52a648245bb0338de987b
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/