Refactor redirect decision making to decider interface
This CL introduces PublicResourceDecider interface that has the redirect decision making API that subclasses should implemeent. This class also has the mojo interface got interacting with browser process. This interface also has the RedirectResult enum that will have ineligible reasons for public image hints approach and robots checking based approach. PublicImageHintsDeciderAgent (rename of SubresourceRedirectHintsAgent) is introduced which is the subclass of the decider interface for public image hints approach. Change-Id: I5ef43c2ee821f7d5aa6501683c22e09464da7972 Bug: 1152527 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2572755 Commit-Queue: rajendrant <rajendrant@chromium.org> Reviewed-by:Michael Crouse <mcrouse@chromium.org> Cr-Commit-Position: refs/heads/master@{#834888}
Showing
Please register or sign in to comment