• Minggang Wang's avatar
    [OnionSoup] Split methods defined in resource_load_stats.h · e0d5db32
    Minggang Wang authored
    Currently, resource_load_stats.h/cc defines a collection of methods
    collecting histograms related to resource load and notifying with
    loading stats. Along with the OnionSoup for loaders, we need these
    functions could be available inside Blink.
    
    This patch leverages the mojom interface ResourceLoadInfoNotifier
    to notify the loading stats, which is visible in Blink, thus we could
    invoke it by sort of blink::URLLoaderClientImpl in the future.
    
    The original functionalities offered by resource_load_stats.h are
    splitted into ResourceLoadInfoNotifierWrapper and RenderFrameImpl.
    The ResourceLoadInfoNotifierWrapper class is responsible to collect
    the histograms and hold a ResourceLoadInfoPtr struct used by the
    ResourceLoadInfoNotifier.
    
    After this patch, only NotifyUpdateUserGestureCarryoverInfo() is left
    in resource_load_stats.h.
    
    Change-Id: Ib5fd5d774544f771753707c4fffcf0034cd12a01
    Bug: 1110032
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2402321Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
    Reviewed-by: default avatarMakoto Shimazu <shimazu@chromium.org>
    Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
    Reviewed-by: default avatarHiroki Nakagawa <nhiroki@chromium.org>
    Commit-Queue: Minggang Wang <minggang.wang@intel.com>
    Cr-Commit-Position: refs/heads/master@{#814686}
    e0d5db32
resource_load_stats.cc 1.07 KB