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

Unified Diff: content/common/media/media_stream_options.cc

Issue 2323913007: Add constructor taking group ID to MediaStreamDevice and StreamDeviceInfo (Closed)
Patch Set: Fix constructor Created 4 years, 3 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/common/media/media_stream_options.h ('k') | content/public/common/media_stream_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/media/media_stream_options.cc
diff --git a/content/common/media/media_stream_options.cc b/content/common/media/media_stream_options.cc
index 944d3d4b5617c7430fe6218a8d4b24005d14947e..876a0d1f50c2bec06b7e9736f2a6ede27c595046 100644
--- a/content/common/media/media_stream_options.cc
+++ b/content/common/media/media_stream_options.cc
@@ -39,21 +39,32 @@ StreamDeviceInfo::StreamDeviceInfo()
StreamDeviceInfo::StreamDeviceInfo(MediaStreamType service_param,
const std::string& name_param,
+ const std::string& device_param,
+ const std::string& group_param)
+ : device(service_param, device_param, name_param, group_param),
+ session_id(kNoId) {}
+
+StreamDeviceInfo::StreamDeviceInfo(MediaStreamType service_param,
+ const std::string& name_param,
const std::string& device_param)
- : device(service_param, device_param, name_param),
- session_id(kNoId) {
+ : StreamDeviceInfo(service_param, name_param, device_param, std::string()) {
}
StreamDeviceInfo::StreamDeviceInfo(MediaStreamType service_param,
const std::string& name_param,
const std::string& device_param,
+ const std::string& group_param,
int sample_rate,
int channel_layout,
int frames_per_buffer)
- : device(service_param, device_param, name_param, sample_rate,
- channel_layout, frames_per_buffer),
- session_id(kNoId) {
-}
+ : device(service_param,
+ device_param,
+ name_param,
+ group_param,
+ sample_rate,
+ channel_layout,
+ frames_per_buffer),
+ session_id(kNoId) {}
// static
bool StreamDeviceInfo::IsEqual(const StreamDeviceInfo& first,
« no previous file with comments | « content/common/media/media_stream_options.h ('k') | content/public/common/media_stream_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698