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/basictypes.h" | |
9 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
10 #include "chromeos/chromeos_export.h" | 9 #include "chromeos/chromeos_export.h" |
11 | 10 |
12 class PrefRegistrySimple; | 11 class PrefRegistrySimple; |
13 | 12 |
14 namespace chromeos { | 13 namespace chromeos { |
15 | 14 |
16 // Interface for observing audio preference changes. | 15 // Interface for observing audio preference changes. |
17 class CHROMEOS_EXPORT AudioPrefObserver { | 16 class CHROMEOS_EXPORT AudioPrefObserver { |
18 public: | 17 public: |
19 // Called when audio policy prefs changed. | 18 // Called when audio policy prefs changed. |
20 virtual void OnAudioPolicyPrefChanged() = 0; | 19 virtual void OnAudioPolicyPrefChanged() = 0; |
21 | 20 |
22 protected: | 21 protected: |
23 virtual ~AudioPrefObserver() {} | 22 virtual ~AudioPrefObserver() {} |
24 }; | 23 }; |
25 | 24 |
26 } // namespace chromeos | 25 } // namespace chromeos |
27 | 26 |
28 #endif // CHROMEOS_AUDIO_AUDIO_PREF_OBSERVER_H_ | 27 #endif // CHROMEOS_AUDIO_AUDIO_PREF_OBSERVER_H_ |
OLD | NEW |