#include "services/network/http_cache_data_remover.h"
#include <set>
#include <string>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/sequenced_task_runner.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
#include "net/disk_cache/disk_cache.h"
#include "net/http/http_cache.h"
#include "net/http/http_network_session.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_getter.h"
#include "services/network/data_remover_util.h"
#include "services/network/public/mojom/clear_data_filter.mojom.h"
#include "services/network/public/mojom/network_context.mojom.h"
#include "url/gurl.h"
namespace network {
HttpCacheDataRemover::HttpCacheDataRemover(
mojom::ClearDataFilterPtr url_filter,
base::Time delete_begin,
base::Time delete_end,
HttpCacheDataRemoverCallback done_callback)
: … { … }
HttpCacheDataRemover::~HttpCacheDataRemover() = default;
std::unique_ptr<HttpCacheDataRemover> HttpCacheDataRemover::CreateAndStart(
net::URLRequestContext* url_request_context,
mojom::ClearDataFilterPtr url_filter,
base::Time delete_begin,
base::Time delete_end,
HttpCacheDataRemoverCallback done_callback) { … }
void HttpCacheDataRemover::CacheRetrieved(
std::pair<int, raw_ptr<disk_cache::Backend>> result) { … }
void HttpCacheDataRemover::ClearHttpCacheDone(int rv) { … }
}