#include "chrome/browser/browsing_data/browsing_data_important_sites_util.h"
#include "base/scoped_observation.h"
#include "chrome/browser/browsing_data/chrome_browsing_data_remover_constants.h"
#include "content/public/browser/browsing_data_filter_builder.h"
namespace {
class BrowsingDataTaskObserver : public content::BrowsingDataRemover::Observer { … };
BrowsingDataTaskObserver::BrowsingDataTaskObserver(
content::BrowsingDataRemover* remover,
base::OnceCallback<void(uint64_t)> callback,
int task_count)
: … { … }
BrowsingDataTaskObserver::~BrowsingDataTaskObserver() = default;
void BrowsingDataTaskObserver::OnBrowsingDataRemoverDone(
uint64_t failed_data_types) { … }
}
namespace browsing_data_important_sites_util {
void Remove(uint64_t remove_mask,
uint64_t origin_mask,
browsing_data::TimePeriod time_period,
std::unique_ptr<content::BrowsingDataFilterBuilder> filter_builder,
content::BrowsingDataRemover* remover,
base::OnceCallback<void(uint64_t)> callback) { … }
}