Add HTTP cache clearing to the network service

Adding a method to the NetworkContext to clear the HTTP cache. The
implementation in the network service duplicates some of the code from
content::StoragePartitionHttpCacheDataRemover.

Changed the BrowsingDataRemoverBrowserTest.Cache test to work with the
network service. Since we do not want to expose more cache states
(such as cache size) for tests, we rely on reloading pages after
stopping the embedded server to test the page is available in the
cache.

Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: I5c7687f931d57cf09119e6e26ae5d1d61eb247f3
Reviewed-on: https://chromium-review.googlesource.com/909949
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Martin Šrámek <msramek@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Reviewed-by: Matt Menke <mmenke@chromium.org>
Commit-Queue: Jay Civelli <jcivelli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540279}

CrOS-Libchrome-Original-Commit: 78612bf0a62bd0e4600626772e3dc82e35a8ea98
1 file changed
tree: 26dd18403be537c0a957df1787b1089eadf507af
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/