chromium/components/prefs/overlay_user_pref_store.cc

// Copyright 2012 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/overlay_user_pref_store.h"

#include <memory>
#include <ostream>
#include <string>
#include <string_view>
#include <utility>

#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/observer_list.h"
#include "base/values.h"
#include "components/prefs/in_memory_pref_store.h"

// Allows us to monitor two pref stores and tell updates from them apart. It
// essentially mimics a Callback for the Observer interface (e.g. it allows
// binding additional arguments).
class OverlayUserPrefStore::ObserverAdapter : public PrefStore::Observer {};

OverlayUserPrefStore::OverlayUserPrefStore(PersistentPrefStore* persistent)
    :{}

OverlayUserPrefStore::OverlayUserPrefStore(PersistentPrefStore* ephemeral,
                                           PersistentPrefStore* persistent)
    :{}

bool OverlayUserPrefStore::IsSetInOverlay(std::string_view key) const {}

void OverlayUserPrefStore::AddObserver(PrefStore::Observer* observer) {}

void OverlayUserPrefStore::RemoveObserver(PrefStore::Observer* observer) {}

bool OverlayUserPrefStore::HasObservers() const {}

bool OverlayUserPrefStore::IsInitializationComplete() const {}

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

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

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

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

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

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

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

bool OverlayUserPrefStore::ReadOnly() const {}

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

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

void OverlayUserPrefStore::ReadPrefsAsync(
    ReadErrorDelegate* error_delegate_raw) {}

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

void OverlayUserPrefStore::SchedulePendingLossyWrites() {}

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

void OverlayUserPrefStore::RegisterPersistentPref(std::string_view key) {}

void OverlayUserPrefStore::OnStoreDeletionFromDisk() {}

OverlayUserPrefStore::~OverlayUserPrefStore() {}

void OverlayUserPrefStore::OnPrefValueChanged(bool ephemeral,
                                              std::string_view key) {}

void OverlayUserPrefStore::OnInitializationCompleted(bool ephemeral,
                                                     bool succeeded) {}

bool OverlayUserPrefStore::ShallBeStoredInPersistent(
    std::string_view key) const {}

bool OverlayUserPrefStore::HasReadErrorDelegate() const {}