Avi Drissman | 8ba1bad | 2022-09-13 19:22:36 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors |
brettw | 58cd1f1 | 2016-01-30 05:56:05 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
brettw | 06650868 | 2016-02-03 08:22:02 | [diff] [blame] | 5 | #ifndef COMPONENTS_PREFS_PREF_OBSERVER_H_ |
| 6 | #define COMPONENTS_PREFS_PREF_OBSERVER_H_ |
brettw | 58cd1f1 | 2016-01-30 05:56:05 | [diff] [blame] | 7 | |
Jan Keitel | 6a0cc39 | 2024-07-08 12:29:56 | [diff] [blame] | 8 | #include <string_view> |
brettw | 58cd1f1 | 2016-01-30 05:56:05 | [diff] [blame] | 9 | |
| 10 | class PrefService; |
| 11 | |
| 12 | // Used internally to the Prefs subsystem to pass preference change |
| 13 | // notifications between PrefService, PrefNotifierImpl and |
| 14 | // PrefChangeRegistrar. |
| 15 | class PrefObserver { |
| 16 | public: |
| 17 | virtual void OnPreferenceChanged(PrefService* service, |
Jan Keitel | 6a0cc39 | 2024-07-08 12:29:56 | [diff] [blame] | 18 | std::string_view pref_name) = 0; |
brettw | 58cd1f1 | 2016-01-30 05:56:05 | [diff] [blame] | 19 | }; |
| 20 | |
brettw | 06650868 | 2016-02-03 08:22:02 | [diff] [blame] | 21 | #endif // COMPONENTS_PREFS_PREF_OBSERVER_H_ |