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

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

Issue 2634263002: Pass camera facing info to audio client (Closed)
Patch Set: Moved to chrome_browser_main_chromeos.cc Created 3 years, 10 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
« no previous file with comments | « content/common/media/media_stream_messages.h ('k') | media/base/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_
6 #define CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_ 6 #define CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_
7 7
8 #include "content/public/common/media_stream_request.h" 8 #include "content/public/common/media_stream_request.h"
9 #include "media/base/video_facing.h"
9 10
10 namespace content { 11 namespace content {
11 12
12 // This is a singleton class, used to get Audio/Video devices, it must be 13 // This is a singleton class, used to get Audio/Video devices, it must be
13 // called in UI thread. 14 // called in UI thread.
14 class CONTENT_EXPORT MediaCaptureDevices { 15 class CONTENT_EXPORT MediaCaptureDevices {
15 public: 16 public:
16 // Get signleton instance of MediaCaptureDevices. 17 // Get signleton instance of MediaCaptureDevices.
17 static MediaCaptureDevices* GetInstance(); 18 static MediaCaptureDevices* GetInstance();
18 19
19 // Return all Audio/Video devices. 20 // Return all Audio/Video devices.
20 virtual const MediaStreamDevices& GetAudioCaptureDevices() = 0; 21 virtual const MediaStreamDevices& GetAudioCaptureDevices() = 0;
21 virtual const MediaStreamDevices& GetVideoCaptureDevices() = 0; 22 virtual const MediaStreamDevices& GetVideoCaptureDevices() = 0;
22 23
24 virtual void AddVideoCaptureObserver(
25 media::VideoCaptureObserver* observer) = 0;
26 virtual void RemoveAllVideoCaptureObservers() = 0;
27
23 private: 28 private:
24 // This interface should only be implemented inside content. 29 // This interface should only be implemented inside content.
25 friend class MediaCaptureDevicesImpl; 30 friend class MediaCaptureDevicesImpl;
26 MediaCaptureDevices() {} 31 MediaCaptureDevices() {}
27 virtual ~MediaCaptureDevices() {} 32 virtual ~MediaCaptureDevices() {}
28 }; 33 };
29 34
30 } // namespace content 35 } // namespace content
31 36
32 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_ 37 #endif // CONTENT_PUBLIC_BROWSER_MEDIA_CAPTURE_DEVICES_H_
OLDNEW
« no previous file with comments | « content/common/media/media_stream_messages.h ('k') | media/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698