Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / browser / media_capture_devices.h
blob925fff66c25163756ba535496cdfdf35286128f2
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_
6 #define CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_
8 #include "content/public/common/media_stream_request.h"
10 namespace content {
12 // This is a singleton class, used to get Audio/Video devices, it must be
13 // called in UI thread.
14 class CONTENT_EXPORT MediaCaptureDevices {
15 public:
16 // Get signleton instance of MediaCaptureDevices.
17 static MediaCaptureDevices* GetInstance();
19 // Return all Audio/Video devices.
20 virtual const MediaStreamDevices& GetAudioCaptureDevices() = 0;
21 virtual const MediaStreamDevices& GetVideoCaptureDevices() = 0;
23 private:
24 // This interface should only be implemented inside content.
25 friend class MediaCaptureDevicesImpl;
26 MediaCaptureDevices() {}
27 virtual ~MediaCaptureDevices() {}
30 } // namespace content
32 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_