blob: 73dd0bca8b31ac00e0e5659a5382ae6c6d070450 [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/browsing_data/content/browsing_data_model.h"
#ifndef COMPONENTS_BROWSING_DATA_CONTENT_FAKE_BROWSING_DATA_MODEL_H_
#define COMPONENTS_BROWSING_DATA_CONTENT_FAKE_BROWSING_DATA_MODEL_H_
// An in-memory only version of the BrowsingDataModel. Uses real
// BrowsingDataModel logic for updating internal in-memory state, but overrides
// any function which would attempt to fetch from disk.
class FakeBrowsingDataModel : public BrowsingDataModel {
public:
explicit FakeBrowsingDataModel();
~FakeBrowsingDataModel() override;
void RemoveBrowsingData(const std::string& primary_host,
base::OnceClosure completed) override;
private:
void PopulateFromDisk(base::OnceClosure finished_callback) override;
};
#endif // COMPONENTS_BROWSING_DATA_CONTENT_FAKE_BROWSING_DATA_MODEL_H_