• msramek's avatar
    Add a cache counter for iOS. · 2d290dc4
    msramek authored
    The CacheCounter class in chrome/browser/browsing_data could not be
    componentized (unlike other counters in components/browsing_data) because
    of its usage of StoragePartitionHttpCacheDataRemover that has a dependency
    on content/.
    
    This CL implements a separate CacheCounter class for iOS with the same
    functionality. The core of the implementation, a series of IO thread
    callbacks, is delegated to the private IOThreadCacheCounter class that
    mimics StoragePartitionHttpCacheDataRemover.
    
    BUG=620317
    
    Review-Url: https://codereview.chromium.org/2354643002
    Cr-Commit-Position: refs/heads/master@{#420599}
    2d290dc4
cache_counter.cc 4.45 KB