chromium/components/prefs/segregated_pref_store.cc

// Copyright 2014 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/prefs/segregated_pref_store.h"

#include <string_view>
#include <utility>

#include "base/barrier_closure.h"
#include "base/check_op.h"
#include "base/containers/contains.h"
#include "base/notreached.h"
#include "base/observer_list.h"
#include "base/values.h"
#include "components/prefs/pref_name_set.h"

SegregatedPrefStore::UnderlyingPrefStoreObserver::UnderlyingPrefStoreObserver(
    SegregatedPrefStore* outer)
    :{}

void SegregatedPrefStore::UnderlyingPrefStoreObserver::OnPrefValueChanged(
    std::string_view key) {}

void SegregatedPrefStore::UnderlyingPrefStoreObserver::
    OnInitializationCompleted(bool succeeded) {}

SegregatedPrefStore::SegregatedPrefStore(
    scoped_refptr<PersistentPrefStore> default_pref_store,
    scoped_refptr<PersistentPrefStore> selected_pref_store,
    PrefNameSet selected_pref_names)
    :{}

void SegregatedPrefStore::AddObserver(Observer* observer) {}

void SegregatedPrefStore::RemoveObserver(Observer* observer) {}

bool SegregatedPrefStore::HasObservers() const {}

bool SegregatedPrefStore::IsInitializationComplete() const {}

bool SegregatedPrefStore::IsInitializationSuccessful() const {}

bool SegregatedPrefStore::GetValue(std::string_view key,
                                   const base::Value** result) const {}

base::Value::Dict SegregatedPrefStore::GetValues() const {}

void SegregatedPrefStore::SetValue(std::string_view key,
                                   base::Value value,
                                   uint32_t flags) {}

void SegregatedPrefStore::RemoveValue(std::string_view key, uint32_t flags) {}

void SegregatedPrefStore::RemoveValuesByPrefixSilently(
    std::string_view prefix) {}

bool SegregatedPrefStore::GetMutableValue(std::string_view key,
                                          base::Value** result) {}

void SegregatedPrefStore::ReportValueChanged(std::string_view key,
                                             uint32_t flags) {}

void SegregatedPrefStore::SetValueSilently(std::string_view key,
                                           base::Value value,
                                           uint32_t flags) {}

bool SegregatedPrefStore::ReadOnly() const {}

PersistentPrefStore::PrefReadError SegregatedPrefStore::GetReadError() const {}

PersistentPrefStore::PrefReadError SegregatedPrefStore::ReadPrefs() {}

void SegregatedPrefStore::ReadPrefsAsync(ReadErrorDelegate* error_delegate) {}

void SegregatedPrefStore::CommitPendingWrite(
    base::OnceClosure reply_callback,
    base::OnceClosure synchronous_done_callback) {}

void SegregatedPrefStore::SchedulePendingLossyWrites() {}

void SegregatedPrefStore::OnStoreDeletionFromDisk() {}

SegregatedPrefStore::~SegregatedPrefStore() {}

PersistentPrefStore* SegregatedPrefStore::StoreForKey(std::string_view key) {}

const PersistentPrefStore* SegregatedPrefStore::StoreForKey(
    std::string_view key) const {}

bool SegregatedPrefStore::HasReadErrorDelegate() const {}