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

Side by Side Diff: content/public/browser/media_capture_devices.h

Issue 183743021: Implement MediaCaptureDevices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
(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, it also provides
13 // observer interface to notify the change of devices.
jam 2014/03/06 01:40:38 nit: remove the second part of this comment
michaelbai 2014/03/06 05:24:52 Done.
14 CONTENT_EXPORT class MediaCaptureDevices {
15 public:
16 // Get signleton instance of MediaCaptureDevices.
17 static MediaCaptureDevices* GetInstance();
18
19 // Return all Audio/Video devices.
20 virtual const MediaStreamDevices& GetAudioCaptureDevices() = 0;
21 virtual const MediaStreamDevices& GetVideoCaptureDevices() = 0;
22
jam 2014/03/06 01:40:38 let's move the one method from content/public/brow
michaelbai 2014/03/06 05:24:52 The head file was removed, and the method is in me
23 private:
24 // This interface should only be implemented inside content.
25 friend class MediaCaptureDevicesImpl;
26 MediaCaptureDevices() {}
27 virtual ~MediaCaptureDevices() {}
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698