Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(994)

Side by Side Diff: chromeos/audio/audio_devices_pref_handler.h

Issue 817013002: cros: Remove system-level policy for audio capture allowed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (allow-audio) rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "chromeos/audio/audio_pref_observer.h" 10 #include "chromeos/audio/audio_pref_observer.h"
(...skipping 21 matching lines...) Expand all
32 virtual double GetOutputVolumeValue(const AudioDevice* device) = 0; 32 virtual double GetOutputVolumeValue(const AudioDevice* device) = 0;
33 virtual double GetInputGainValue(const AudioDevice* device) = 0; 33 virtual double GetInputGainValue(const AudioDevice* device) = 0;
34 // Sets the audio volume or gain value to prefs for a device. 34 // Sets the audio volume or gain value to prefs for a device.
35 virtual void SetVolumeGainValue(const AudioDevice& device, double value) = 0; 35 virtual void SetVolumeGainValue(const AudioDevice& device, double value) = 0;
36 36
37 // Reads the audio mute value from prefs for a device. 37 // Reads the audio mute value from prefs for a device.
38 virtual bool GetMuteValue(const AudioDevice& device) = 0; 38 virtual bool GetMuteValue(const AudioDevice& device) = 0;
39 // Sets the audio mute value to prefs for a device. 39 // Sets the audio mute value to prefs for a device.
40 virtual void SetMuteValue(const AudioDevice& device, bool mute_on) = 0; 40 virtual void SetMuteValue(const AudioDevice& device, bool mute_on) = 0;
41 41
42 // Reads the audio capture allowed value from prefs, which can be used to
43 // disable audio capture via policy.
44 virtual bool GetAudioCaptureAllowedValue() = 0;
45 // Reads the audio output allowed value from prefs. 42 // Reads the audio output allowed value from prefs.
46 virtual bool GetAudioOutputAllowedValue() = 0; 43 virtual bool GetAudioOutputAllowedValue() = 0;
47 44
48 // Adds an audio preference observer. 45 // Adds an audio preference observer.
49 virtual void AddAudioPrefObserver(AudioPrefObserver* observer) = 0; 46 virtual void AddAudioPrefObserver(AudioPrefObserver* observer) = 0;
50 // Removes an audio preference observer. 47 // Removes an audio preference observer.
51 virtual void RemoveAudioPrefObserver(AudioPrefObserver* observer) = 0; 48 virtual void RemoveAudioPrefObserver(AudioPrefObserver* observer) = 0;
52 49
53 protected: 50 protected:
54 virtual ~AudioDevicesPrefHandler() {} 51 virtual ~AudioDevicesPrefHandler() {}
55 52
56 private: 53 private:
57 friend class base::RefCountedThreadSafe<AudioDevicesPrefHandler>; 54 friend class base::RefCountedThreadSafe<AudioDevicesPrefHandler>;
58 }; 55 };
59 56
60 } // namespace chromeos 57 } // namespace chromeos
61 58
62 #endif // CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_H_ 59 #endif // CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | chromeos/audio/audio_devices_pref_handler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698