• rajendrant's avatar
    Refactor subresource redirect renderer code · 674a1af2
    rajendrant authored
    This CL refactors the existing subresource redirect code to make the
    robots rules and login based image compression implementation easy.
    
    * Separate out the url loader throttle that does redirect and timeout
    handling from the public image hints decider logic. The robots decider can
    be subclassed and used.
    
    * Make public image hints agent as renderframeobserver. This reduces
    cluttter in ResourceLoadingHintsAgent. The upcoming robots checker agent
    could also observe renderframeobserver directly.
    
    No change in behavior is expected.
    
    Change-Id: Ic555a4402016a645b8820fa87dd5157c7112fb71
    Bug: 1144836
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2514068
    Commit-Queue: rajendrant <rajendrant@chromium.org>
    Reviewed-by: default avatarMichael Crouse <mcrouse@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#825115}
    674a1af2
resource_loading_hints_agent.cc 5.71 KB