// Copyright 2010 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_PREFS_PREF_CHANGE_REGISTRAR_H_ #define COMPONENTS_PREFS_PREF_CHANGE_REGISTRAR_H_ #include <functional> #include <map> #include <string> #include <string_view> #include "base/functional/callback.h" #include "base/memory/raw_ptr.h" #include "components/prefs/pref_observer.h" #include "components/prefs/prefs_export.h" class PrefService; // Automatically manages the registration of one or more pref change observers // with a PrefStore. When the Registrar is destroyed, all registered observers // are automatically unregistered with the PrefStore. class COMPONENTS_PREFS_EXPORT PrefChangeRegistrar final : public PrefObserver { … }; #endif // COMPONENTS_PREFS_PREF_CHANGE_REGISTRAR_H_