blob: bbc293a08d93ad6c55a73eff12f0d0bf52d0e607 [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361// Copyright 2012 The Chromium Authors
brettw58cd1f12016-01-30 05:56:052// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
brettw066508682016-02-03 08:22:025#ifndef COMPONENTS_PREFS_PREF_OBSERVER_H_
6#define COMPONENTS_PREFS_PREF_OBSERVER_H_
brettw58cd1f12016-01-30 05:56:057
Jan Keitel6a0cc392024-07-08 12:29:568#include <string_view>
brettw58cd1f12016-01-30 05:56:059
10class PrefService;
11
12// Used internally to the Prefs subsystem to pass preference change
13// notifications between PrefService, PrefNotifierImpl and
14// PrefChangeRegistrar.
15class PrefObserver {
16 public:
17 virtual void OnPreferenceChanged(PrefService* service,
Jan Keitel6a0cc392024-07-08 12:29:5618 std::string_view pref_name) = 0;
brettw58cd1f12016-01-30 05:56:0519};
20
brettw066508682016-02-03 08:22:0221#endif // COMPONENTS_PREFS_PREF_OBSERVER_H_