Index: chromeos/audio/cras_audio_handler.h |
diff --git a/chromeos/audio/cras_audio_handler.h b/chromeos/audio/cras_audio_handler.h |
index 1408f061f5d103fc56b55aed917072477056c511..ac8a75687a66f598618fedb618227d695fb78b57 100644 |
--- a/chromeos/audio/cras_audio_handler.h |
+++ b/chromeos/audio/cras_audio_handler.h |
@@ -21,6 +21,7 @@ |
#include "chromeos/dbus/cras_audio_client.h" |
#include "chromeos/dbus/session_manager_client.h" |
#include "chromeos/dbus/volume_state.h" |
+#include "media/base/video_facing.h" |
namespace chromeos { |
@@ -28,11 +29,12 @@ class AudioDevicesPrefHandler; |
class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer, |
public AudioPrefObserver, |
- public SessionManagerClient::Observer { |
+ public SessionManagerClient::Observer, |
+ public media::VideoCaptureObserver { |
public: |
- typedef std::priority_queue<AudioDevice, |
- std::vector<AudioDevice>, |
- AudioDeviceCompare> AudioDevicePriorityQueue; |
+ typedef std:: |
+ priority_queue<AudioDevice, std::vector<AudioDevice>, AudioDeviceCompare> |
+ AudioDevicePriorityQueue; |
typedef std::vector<uint64_t> NodeIdList; |
// Volume change reasons that are not user-initiated. |
@@ -103,6 +105,10 @@ class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer, |
// Gets the global instance. Initialize must be called first. |
static CrasAudioHandler* Get(); |
+ // Overrides media::VideoCaptureObserver. |
+ void OnVideoCaptureStarted(media::VideoFacingMode facing) override; |
+ void OnVideoCaptureStopped(media::VideoFacingMode facing) override; |
+ |
// Adds an audio observer. |
void AddAudioObserver(AudioObserver* observer); |