#include "chrome/browser/browsing_data/counters/cache_counter.h"
#include "base/functional/bind.h"
#include "chrome/browser/profiles/profile.h"
#include "components/browsing_data/content/conditional_cache_counting_helper.h"
#include "components/browsing_data/core/pref_names.h"
#include "components/offline_pages/buildflags/buildflags.h"
#include "content/public/browser/browser_thread.h"
#include "net/base/net_errors.h"
#if BUILDFLAG(ENABLE_OFFLINE_PAGES)
#include "chrome/browser/offline_pages/offline_page_utils.h"
#endif
CacheCounter::CacheResult::CacheResult(const CacheCounter* source,
int64_t cache_size,
bool is_upper_limit)
: … { … }
CacheCounter::CacheResult::~CacheResult() { … }
CacheCounter::CacheCounter(Profile* profile) : … { … }
CacheCounter::~CacheCounter() { … }
const char* CacheCounter::GetPrefName() const { … }
void CacheCounter::Count() { … }
void CacheCounter::OnCacheSizeCalculated(bool is_upper_limit,
int64_t cache_bytes) { … }