• rajendrant's avatar
    Refactor redirect decision making to decider interface · 6f3c6956
    rajendrant authored
    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: default avatarMichael Crouse <mcrouse@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#834888}
    6f3c6956
chrome_content_renderer_client.cc 68.5 KB