| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROMEOS_AUDIO_AUDIO_PREF_OBSERVER_H_ | 5 #ifndef CHROMEOS_AUDIO_AUDIO_PREF_OBSERVER_H_ |
| 6 #define CHROMEOS_AUDIO_AUDIO_PREF_OBSERVER_H_ | 6 #define CHROMEOS_AUDIO_AUDIO_PREF_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "chromeos/chromeos_export.h" | 9 #include "chromeos/chromeos_export.h" |
| 10 | 10 |
| 11 class PrefRegistrySimple; | |
| 12 | |
| 13 namespace chromeos { | 11 namespace chromeos { |
| 14 | 12 |
| 15 // Interface for observing audio preference changes. | 13 // Interface for observing audio preference changes. |
| 16 class CHROMEOS_EXPORT AudioPrefObserver { | 14 class CHROMEOS_EXPORT AudioPrefObserver { |
| 17 public: | 15 public: |
| 18 // Called when audio policy prefs changed. | 16 // Called when audio policy prefs changed. |
| 19 virtual void OnAudioPolicyPrefChanged() = 0; | 17 virtual void OnAudioPolicyPrefChanged() = 0; |
| 20 | 18 |
| 21 protected: | 19 protected: |
| 22 virtual ~AudioPrefObserver() {} | 20 virtual ~AudioPrefObserver() {} |
| 23 }; | 21 }; |
| 24 | 22 |
| 25 } // namespace chromeos | 23 } // namespace chromeos |
| 26 | 24 |
| 27 #endif // CHROMEOS_AUDIO_AUDIO_PREF_OBSERVER_H_ | 25 #endif // CHROMEOS_AUDIO_AUDIO_PREF_OBSERVER_H_ |
| OLD | NEW |