#include "chrome/browser/printing/print_preview_sticky_settings.h"
#include "base/json/json_reader.h"
#include "base/no_destructor.h"
#include "base/values.h"
#include "chrome/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"
namespace printing {
namespace {
constexpr char kId[] = …;
constexpr char kRecentDestinations[] = …;
constexpr char kSettingAppState[] = …;
}
PrintPreviewStickySettings* PrintPreviewStickySettings::GetInstance() { … }
PrintPreviewStickySettings::PrintPreviewStickySettings() = default;
PrintPreviewStickySettings::~PrintPreviewStickySettings() = default;
const std::string* PrintPreviewStickySettings::printer_app_state() const { … }
void PrintPreviewStickySettings::StoreAppState(const std::string& data) { … }
void PrintPreviewStickySettings::SaveInPrefs(PrefService* prefs) const { … }
void PrintPreviewStickySettings::RestoreFromPrefs(PrefService* prefs) { … }
base::flat_map<std::string, int>
PrintPreviewStickySettings::GetPrinterRecentlyUsedRanks() { … }
std::vector<std::string> PrintPreviewStickySettings::GetRecentlyUsedPrinters() { … }
void PrintPreviewStickySettings::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) { … }
}