#include "services/network/http_cache_data_counter.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/task/sequenced_task_runner.h"
#include "net/disk_cache/disk_cache.h"
#include "net/http/http_cache.h"
#include "net/url_request/url_request_context.h"
namespace network {
std::unique_ptr<HttpCacheDataCounter> HttpCacheDataCounter::CreateAndStart(
net::URLRequestContext* url_request_context,
base::Time start_time,
base::Time end_time,
HttpCacheDataCounterCallback callback) { … }
HttpCacheDataCounter::HttpCacheDataCounter(
base::Time start_time,
base::Time end_time,
HttpCacheDataCounterCallback callback)
: … { … }
HttpCacheDataCounter::~HttpCacheDataCounter() { … }
void HttpCacheDataCounter::GotBackend(
std::pair<int, raw_ptr<disk_cache::Backend>> result) { … }
void HttpCacheDataCounter::PostResult(bool is_upper_limit,
int64_t result_or_error) { … }
}