#include "chrome/browser/extensions/api/storage/policy_value_store.h"
#include <algorithm>
#include <utility>
#include "base/logging.h"
#include "base/values.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_types.h"
#include "components/value_store/value_store_change.h"
#include "extensions/browser/api/storage/backend_task_runner.h"
#include "extensions/browser/api/storage/storage_area_namespace.h"
#include "extensions/common/extension_id.h"
ValueStore;
namespace extensions {
namespace {
ValueStore::Status ReadOnlyError() { … }
}
PolicyValueStore::PolicyValueStore(
const ExtensionId& extension_id,
SequenceBoundSettingsChangedCallback observer,
std::unique_ptr<ValueStore> delegate)
: … { … }
PolicyValueStore::~PolicyValueStore() { … }
void PolicyValueStore::SetCurrentPolicy(const policy::PolicyMap& policy) { … }
void PolicyValueStore::DeleteStorage() { … }
size_t PolicyValueStore::GetBytesInUse(const std::string& key) { … }
size_t PolicyValueStore::GetBytesInUse(const std::vector<std::string>& keys) { … }
size_t PolicyValueStore::GetBytesInUse() { … }
ValueStore::ReadResult PolicyValueStore::Get(const std::string& key) { … }
ValueStore::ReadResult PolicyValueStore::Get(
const std::vector<std::string>& keys) { … }
ValueStore::ReadResult PolicyValueStore::Get() { … }
ValueStore::WriteResult PolicyValueStore::Set(WriteOptions options,
const std::string& key,
const base::Value& value) { … }
ValueStore::WriteResult PolicyValueStore::Set(
WriteOptions options,
const base::Value::Dict& settings) { … }
ValueStore::WriteResult PolicyValueStore::Remove(const std::string& key) { … }
ValueStore::WriteResult PolicyValueStore::Remove(
const std::vector<std::string>& keys) { … }
ValueStore::WriteResult PolicyValueStore::Clear() { … }
}