#include "components/offline_pages/core/archive_manager.h"
#include "base/files/file_enumerator.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/utf_string_conversions.h"
#include "base/system/sys_info.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
namespace offline_pages {
namespace {
StorageStatsCallback;
void EnsureArchivesDirCreatedImpl(const base::FilePath& archives_dir,
bool is_temp) { … }
void GetStorageStatsImpl(const base::FilePath& temporary_archives_dir,
const base::FilePath& private_archives_dir,
const base::FilePath& public_archives_dir,
scoped_refptr<base::SequencedTaskRunner> task_runner,
StorageStatsCallback callback) { … }
}
ArchiveManager::ArchiveManager() { … }
ArchiveManager::ArchiveManager(
const base::FilePath& temporary_archives_dir,
const base::FilePath& private_archives_dir,
const base::FilePath& public_archives_dir,
const scoped_refptr<base::SequencedTaskRunner>& task_runner)
: … { … }
ArchiveManager::~ArchiveManager() { … }
void ArchiveManager::EnsureArchivesDirCreated(
base::OnceCallback<void()> callback) { … }
void ArchiveManager::GetStorageStats(StorageStatsCallback callback) const { … }
const base::FilePath& ArchiveManager::GetTemporaryArchivesDir() const { … }
const base::FilePath& ArchiveManager::GetPrivateArchivesDir() const { … }
const base::FilePath& ArchiveManager::GetPublicArchivesDir() { … }
}