blob: bbc293a08d93ad6c55a73eff12f0d0bf52d0e607 [file] [log] [blame]
// Copyright 2012 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_OBSERVER_H_
#define COMPONENTS_PREFS_PREF_OBSERVER_H_
#include <string_view>
class PrefService;
// Used internally to the Prefs subsystem to pass preference change
// notifications between PrefService, PrefNotifierImpl and
// PrefChangeRegistrar.
class PrefObserver {
public:
virtual void OnPreferenceChanged(PrefService* service,
std::string_view pref_name) = 0;
};
#endif // COMPONENTS_PREFS_PREF_OBSERVER_H_