OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_ | |
7 | |
8 #include "content/public/common/media_stream_request.h" | |
9 | |
10 namespace content { | |
11 | |
12 // This is a singleton class, used to get Audio/Video devices. | |
Sergey Ulanov
2014/03/06 08:26:40
Please mention that it must be used on the UI thre
michaelbai
2014/03/06 19:27:20
Done.
| |
13 CONTENT_EXPORT class MediaCaptureDevices { | |
Sergey Ulanov
2014/03/06 08:26:40
CONTENT_EXPORT should be between 'class' and the c
Sergey Ulanov
2014/03/06 08:26:40
Does this class need to be be a singleton? E.g. ca
michaelbai
2014/03/06 19:27:20
Done.
michaelbai
2014/03/06 19:27:20
MediaStreamManager is not content API, browser can
| |
14 public: | |
15 // Get signleton instance of MediaCaptureDevices. | |
16 static MediaCaptureDevices* GetInstance(); | |
17 | |
18 // Return all Audio/Video devices. | |
19 virtual const MediaStreamDevices& GetAudioCaptureDevices() = 0; | |
20 virtual const MediaStreamDevices& GetVideoCaptureDevices() = 0; | |
21 | |
22 private: | |
23 // This interface should only be implemented inside content. | |
24 friend class MediaCaptureDevicesImpl; | |
25 MediaCaptureDevices() {} | |
26 virtual ~MediaCaptureDevices() {} | |
27 }; | |
28 | |
29 } // namespace content | |
30 | |
31 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_ | |
OLD | NEW |