blob: a325fa5ba7c2e098f023633269f3a9939e483323 [file] [log] [blame]
// Copyright 2025 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/persistent_cache/persistent_cache.h"
#include <memory>
#include <optional>
#include "base/notreached.h"
#include "base/types/expected.h"
#include "components/persistent_cache/backend.h"
#include "components/persistent_cache/entry.h"
namespace persistent_cache {
// PersistentCache is not compatible with Fuchsia. This is a placeholder
// implementation to avoid littering the code with ifdefs.
// static
std::unique_ptr<PersistentCache> PersistentCache::Open(
BackendParams backend_params) {
NOTREACHED();
}
PersistentCache::PersistentCache(std::unique_ptr<Backend> backend) {
NOTREACHED();
}
PersistentCache::~PersistentCache() {
NOTREACHED();
}
base::expected<std::unique_ptr<Entry>, TransactionError> PersistentCache::Find(
std::string_view key) {
NOTREACHED();
}
base::expected<void, TransactionError> PersistentCache::Insert(
std::string_view key,
base::span<const uint8_t> content,
EntryMetadata metadata) {
NOTREACHED();
}
std::optional<BackendParams> PersistentCache::ExportReadOnlyBackendParams() {
NOTREACHED();
}
std::optional<BackendParams> PersistentCache::ExportReadWriteBackendParams() {
NOTREACHED();
}
LockState PersistentCache::Abandon() {
NOTREACHED();
}
Backend* PersistentCache::GetBackendForTesting() {
NOTREACHED();
}
} // namespace persistent_cache