diff options
author | jennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-01 20:14:40 +0000 |
---|---|---|
committer | jennyz@chromium.org <jennyz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-01 20:14:40 +0000 |
commit | 82578f99e0888fc6164a8b3136f08c162cdba570 (patch) | |
tree | 8a37e0d0c1bd226396eadcafd1710b3b3b3ed538 /chromeos/audio | |
parent | 837af56c6e544d0fd60eab7a8532f914c2e3ea97 (diff) | |
download | chromium_src-82578f99e0888fc6164a8b3136f08c162cdba570.zip chromium_src-82578f99e0888fc6164a8b3136f08c162cdba570.tar.gz chromium_src-82578f99e0888fc6164a8b3136f08c162cdba570.tar.bz2 |
Consolidate AudioPrefHandler code into AudioDevicesPrefHandler, and remove the AudioPrefHandler which handles the legacy audio prefs and register audio policy preferences.
BUG=266538
TBR=sky
Review URL: https://chromiumcodereview.appspot.com/21454002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215099 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/audio')
-rw-r--r-- | chromeos/audio/audio_pref_handler.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/chromeos/audio/audio_pref_handler.h b/chromeos/audio/audio_pref_handler.h deleted file mode 100644 index 89e4b7b..0000000 --- a/chromeos/audio/audio_pref_handler.h +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef CHROMEOS_AUDIO_AUDIO_PREF_HANDLER_H_ -#define CHROMEOS_AUDIO_AUDIO_PREF_HANDLER_H_ - -#include "base/basictypes.h" -#include "base/memory/ref_counted.h" -#include "chromeos/audio/audio_pref_observer.h" -#include "chromeos/chromeos_export.h" - -class PrefRegistrySimple; - -namespace chromeos { - -// TODO(jennyz,rkc): This class will be removed once we remove the old Audio -// Handler code. -// Interface that handles audio preference related work, reads and writes -// audio preferences, and notifies AudioPrefObserver for audio preference -// changes. -class CHROMEOS_EXPORT AudioPrefHandler - : public base::RefCountedThreadSafe<AudioPrefHandler> { - public: - // Gets the audio output volume value from prefs. - virtual double GetOutputVolumeValue() = 0; - - // Sets the output audio volume value to prefs. - virtual void SetOutputVolumeValue(double volume_percent) = 0; - - // Reads the audio output mute value from prefs. - virtual bool GetOutputMuteValue() = 0; - - // Sets the audio output mute value to prefs. - virtual void SetOutputMuteValue(bool mute_on) = 0; - - // Reads the audio capture allowed value from prefs. - virtual bool GetAudioCaptureAllowedValue() = 0; - - // Sets the audio output allowed value from prefs. - virtual bool GetAudioOutputAllowedValue() = 0; - - // Adds an audio preference observer. - virtual void AddAudioPrefObserver(AudioPrefObserver* observer) = 0; - - // Removes an audio preference observer. - virtual void RemoveAudioPrefObserver(AudioPrefObserver* observer) = 0; - - // Creates the instance. - static AudioPrefHandler* Create(PrefService* local_state); - - protected: - virtual ~AudioPrefHandler() {} - - private: - friend class base::RefCountedThreadSafe<AudioPrefHandler>; -}; - -} // namespace chromeos - -#endif // CHROMEOS_AUDIO_AUDIO_PREF_HANDLER_H_ |