blob: 9ed92c2a5ad01ba525ff5aa04d03555c9d5833e8 [file] [log] [blame]
// Copyright 2014 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.
#include "content/public/common/media_stream_request.h"
#include "media/base/video_facing.h"
namespace content {
// This is a singleton class, used to get Audio/Video devices, it must be
// called in UI thread.
class CONTENT_EXPORT MediaCaptureDevices {
// Get signleton instance of MediaCaptureDevices.
static MediaCaptureDevices* GetInstance();
// Return all Audio/Video devices.
virtual const MediaStreamDevices& GetAudioCaptureDevices() = 0;
virtual const MediaStreamDevices& GetVideoCaptureDevices() = 0;
virtual void AddVideoCaptureObserver(
media::VideoCaptureObserver* observer) = 0;
virtual void RemoveAllVideoCaptureObservers() = 0;
// This interface should only be implemented inside content.
friend class MediaCaptureDevicesImpl;
MediaCaptureDevices() {}
virtual ~MediaCaptureDevices() {}
} // namespace content