| 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_DEVICES_PREF_HANDLER_H_ | 5 #ifndef CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_H_ |
| 6 #define CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_H_ | 6 #define CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "chromeos/audio/audio_pref_observer.h" | 9 #include "chromeos/audio/audio_pref_observer.h" |
| 10 #include "chromeos/chromeos_export.h" | 10 #include "chromeos/chromeos_export.h" |
| 11 | 11 |
| 12 class PrefService; | |
| 13 | |
| 14 namespace chromeos { | 12 namespace chromeos { |
| 15 | 13 |
| 16 struct AudioDevice; | 14 struct AudioDevice; |
| 17 | 15 |
| 18 // Interface that handles audio preference related work, reads and writes | 16 // Interface that handles audio preference related work, reads and writes |
| 19 // audio preferences, and notifies AudioPrefObserver for audio preference | 17 // audio preferences, and notifies AudioPrefObserver for audio preference |
| 20 // changes. | 18 // changes. |
| 21 class CHROMEOS_EXPORT AudioDevicesPrefHandler | 19 class CHROMEOS_EXPORT AudioDevicesPrefHandler |
| 22 : public base::RefCountedThreadSafe<AudioDevicesPrefHandler> { | 20 : public base::RefCountedThreadSafe<AudioDevicesPrefHandler> { |
| 23 public: | 21 public: |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 protected: | 61 protected: |
| 64 virtual ~AudioDevicesPrefHandler() {} | 62 virtual ~AudioDevicesPrefHandler() {} |
| 65 | 63 |
| 66 private: | 64 private: |
| 67 friend class base::RefCountedThreadSafe<AudioDevicesPrefHandler>; | 65 friend class base::RefCountedThreadSafe<AudioDevicesPrefHandler>; |
| 68 }; | 66 }; |
| 69 | 67 |
| 70 } // namespace chromeos | 68 } // namespace chromeos |
| 71 | 69 |
| 72 #endif // CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_H_ | 70 #endif // CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_H_ |
| OLD | NEW |