#include "chrome/browser/extensions/api/settings_private/settings_private_event_router.h"
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/api/settings_private/generated_prefs.h"
#include "chrome/browser/extensions/api/settings_private/generated_prefs_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/settings_private.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/browser_context.h"
namespace extensions {
SettingsPrivateEventRouter::SettingsPrivateEventRouter(
content::BrowserContext* context)
: … { … }
SettingsPrivateEventRouter::~SettingsPrivateEventRouter() { … }
void SettingsPrivateEventRouter::OnGeneratedPrefChanged(
const std::string& pref_name) { … }
void SettingsPrivateEventRouter::Shutdown() { … }
void SettingsPrivateEventRouter::OnListenerAdded(
const EventListenerInfo& details) { … }
void SettingsPrivateEventRouter::OnListenerRemoved(
const EventListenerInfo& details) { … }
PrefChangeRegistrar* SettingsPrivateEventRouter::FindRegistrarForPref(
const std::string& pref_name) { … }
void SettingsPrivateEventRouter::StartOrStopListeningForPrefsChanges() { … }
void SettingsPrivateEventRouter::OnPreferenceChanged(
const std::string& pref_name) { … }
void SettingsPrivateEventRouter::SendPrefChange(const std::string& pref_name) { … }
std::unique_ptr<SettingsPrivateEventRouter> SettingsPrivateEventRouter::Create(
content::BrowserContext* context) { … }
}