#ifndef COMPONENTS_BROWSING_DATA_CONTENT_CONDITIONAL_CACHE_COUNTING_HELPER_H_
#define COMPONENTS_BROWSING_DATA_CONTENT_CONDITIONAL_CACHE_COUNTING_HELPER_H_
#include "base/functional/callback_forward.h"
#include "base/task/sequenced_task_runner_helpers.h"
#include "net/base/net_errors.h"
namespace content {
class StoragePartition;
}
namespace browsing_data {
class ConditionalCacheCountingHelper {
public:
typedef base::OnceCallback<void(bool, int64_t)> CacheCountCallback;
ConditionalCacheCountingHelper(const ConditionalCacheCountingHelper&) =
delete;
ConditionalCacheCountingHelper& operator=(
const ConditionalCacheCountingHelper&) = delete;
static void Count(content::StoragePartition* storage_partition,
base::Time begin_time,
base::Time end_time,
CacheCountCallback result_callback);
};
}
#endif