blob: 35c372211b11329977ff72360ec4d164a29b98d2 [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/pending_backend.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::Bind(
PendingBackend pending_backend) {
NOTREACHED();
}
PersistentCache::PersistentCache(std::unique_ptr<Backend> backend) {
NOTREACHED();
}
PersistentCache::~PersistentCache() {
NOTREACHED();
}
base::expected<std::optional<EntryMetadata>, TransactionError>
PersistentCache::Find(std::string_view key, BufferProvider buffer_provider) {
NOTREACHED();
}
base::expected<void, TransactionError> PersistentCache::Insert(
std::string_view key,
base::span<const uint8_t> content,
EntryMetadata metadata) {
NOTREACHED();
}
LockState PersistentCache::Abandon() {
NOTREACHED();
}
Backend* PersistentCache::GetBackendForTesting() {
NOTREACHED();
}
} // namespace persistent_cache