
This implements the DRP logic for only using CORE proxies when proxying RESOURCE_TYPE_MEDIA requests. A similar approach is used to DataReductionProxyDelegate, which uses an MRUCache to associate URLs to resource type during proxy resolution, since the ProxyDelegate only has access to the URL. Bug: 721403 Cq-Include-Trybots: luci.chromium.try:linux_mojo Change-Id: Ib1c50dbc1344535e46c80b2d3a900dbb6b215141 Reviewed-on: https://chromium-review.googlesource.com/c/1274526 Commit-Queue: Clark DuVall <cduvall@chromium.org> Reviewed-by: John Abd-El-Malek <jam@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: rajendrant <rajendrant@chromium.org> Reviewed-by: Tarun Bansal <tbansal@chromium.org> Cr-Commit-Position: refs/heads/master@{#600786}