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

Unified Diff: content/common/media/media_devices.h

Issue 2650153003: Add constructors and operators to MediaDeviceInfo. (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/media/media_devices_manager.cc ('k') | content/common/media/media_devices.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/media/media_devices.h
diff --git a/content/common/media/media_devices.h b/content/common/media/media_devices.h
index 6ac1e2c5d7e5de67e65b00002ac59b7cb7a59ed9..a7bf705cd48d9780bc22dde25f346f9e60cf55a7 100644
--- a/content/common/media/media_devices.h
+++ b/content/common/media/media_devices.h
@@ -12,6 +12,7 @@
namespace media {
struct AudioDeviceDescription;
+struct VideoCaptureDeviceDescriptor;
}
namespace content {
@@ -24,12 +25,18 @@ enum MediaDeviceType {
};
struct CONTENT_EXPORT MediaDeviceInfo {
- MediaDeviceInfo() = default;
+ MediaDeviceInfo();
+ MediaDeviceInfo(const MediaDeviceInfo& other);
+ MediaDeviceInfo(MediaDeviceInfo&& other);
MediaDeviceInfo(const std::string& device_id,
const std::string& label,
const std::string& group_id);
+ explicit MediaDeviceInfo(const media::AudioDeviceDescription& description);
explicit MediaDeviceInfo(
- const media::AudioDeviceDescription& device_description);
+ const media::VideoCaptureDeviceDescriptor& descriptor);
+ ~MediaDeviceInfo();
+ MediaDeviceInfo& operator=(const MediaDeviceInfo& other);
+ MediaDeviceInfo& operator=(MediaDeviceInfo&& other);
std::string device_id;
std::string label;
« no previous file with comments | « content/browser/renderer_host/media/media_devices_manager.cc ('k') | content/common/media/media_devices.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698