Index: chromeos/audio/audio_devices_pref_handler_impl.h |
diff --git a/chromeos/audio/audio_devices_pref_handler_impl.h b/chromeos/audio/audio_devices_pref_handler_impl.h |
index 72dc335c4b5d03ce6096de3353db1730396a2fa9..31ee5441ec72501dc83fcf7c7399153abbd4faf7 100644 |
--- a/chromeos/audio/audio_devices_pref_handler_impl.h |
+++ b/chromeos/audio/audio_devices_pref_handler_impl.h |
@@ -34,6 +34,10 @@ class CHROMEOS_EXPORT AudioDevicesPrefHandlerImpl |
bool GetMuteValue(const AudioDevice& device) override; |
void SetMuteValue(const AudioDevice& device, bool mute_on) override; |
+ AudioDeviceState GetDeviceState(const AudioDevice &device) override; |
+ void SetDeviceState(const AudioDevice& device, |
+ AudioDeviceState state) override; |
+ |
bool GetAudioOutputAllowedValue() override; |
void AddAudioPrefObserver(AudioPrefObserver* observer) override; |
@@ -57,6 +61,10 @@ class CHROMEOS_EXPORT AudioDevicesPrefHandlerImpl |
void UpdateDevicesVolumePref(); |
void SaveDevicesVolumePref(); |
+ // Update and save methods for the active state for all devices. |
+ void UpdateDevicesStatePref(); |
+ void SaveDevicesStatePref(); |
+ |
double GetVolumeGainPrefValue(const AudioDevice& device); |
double GetDeviceDefaultOutputVolume(const AudioDevice& device); |
@@ -72,6 +80,7 @@ class CHROMEOS_EXPORT AudioDevicesPrefHandlerImpl |
scoped_ptr<base::DictionaryValue> device_mute_settings_; |
scoped_ptr<base::DictionaryValue> device_volume_settings_; |
+ scoped_ptr<base::DictionaryValue> device_state_settings_; |
PrefService* local_state_; // not owned |