#include "content/browser/browsing_data/storage_partition_code_cache_data_remover.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/task/sequenced_task_runner_helpers.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
#include "content/browser/browsing_data/conditional_cache_deletion_helper.h"
#include "content/browser/code_cache/generated_code_cache.h"
#include "content/browser/code_cache/generated_code_cache_context.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/common/content_features.h"
#include "net/base/completion_repeating_callback.h"
#include "net/disk_cache/disk_cache.h"
namespace content {
StoragePartitionCodeCacheDataRemover::StoragePartitionCodeCacheDataRemover(
GeneratedCodeCacheContext* generated_code_cache_context,
base::RepeatingCallback<bool(const GURL&)> url_predicate,
base::Time begin_time,
base::Time end_time)
: … { … }
StoragePartitionCodeCacheDataRemover*
StoragePartitionCodeCacheDataRemover::Create(
content::StoragePartition* storage_partition,
base::RepeatingCallback<bool(const GURL&)> url_predicate,
base::Time begin_time,
base::Time end_time) { … }
StoragePartitionCodeCacheDataRemover::~StoragePartitionCodeCacheDataRemover() { … }
void StoragePartitionCodeCacheDataRemover::Remove(
base::OnceClosure done_callback) { … }
void StoragePartitionCodeCacheDataRemover::ClearedCodeCache() { … }
void StoragePartitionCodeCacheDataRemover::ClearCache(
net::CompletionOnceCallback callback,
disk_cache::Backend* backend) { … }
void StoragePartitionCodeCacheDataRemover::ClearJSCodeCache() { … }
void StoragePartitionCodeCacheDataRemover::ClearWASMCodeCache(int rv) { … }
void StoragePartitionCodeCacheDataRemover::ClearWebUIJSCodeCache(int rv) { … }
void StoragePartitionCodeCacheDataRemover::DoneClearCodeCache(int rv) { … }
}