Chromium Code Reviews| 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 524bc203f87f44c647a380e7c7461b4576d5308f..c6d77f9b811b514acd213663b34bf947116a159b 100644 |
| --- a/content/common/media/media_stream_options.cc |
| +++ b/content/common/media/media_stream_options.cc |
| @@ -8,6 +8,10 @@ |
| namespace media_stream { |
| +const char kMediaStreamSource[] = "chromeMediaSource"; |
| +const char kMediaStreamSourceId[] = "chromeMediaSourceId"; |
| +const char kMediaStreamSourceTab[] = "tab"; |
| + |
| StreamOptions::StreamOptions() |
| : audio_type(content::MEDIA_NO_SERVICE), |
| video_type(content::MEDIA_NO_SERVICE) {} |
| @@ -29,6 +33,16 @@ StreamOptions::StreamOptions(MediaStreamType audio_type, |
| video_type == content::MEDIA_NO_SERVICE); |
| } |
| +StreamOptions::StreamOptions(MediaStreamType audio_type, |
| + std::string audio_device_id, |
| + MediaStreamType video_type, |
| + std::string video_device_id) |
| + : audio_type(audio_type), |
| + audio_device_id(audio_device_id), |
| + video_type(video_type), |
| + video_device_id(video_device_id) { |
| +} |
|
miu
2012/10/12 01:10:50
Consider adding DCHECKs, like the constructor abov
justinlin
2012/10/12 03:02:31
Done.
|
| + |
| // static |
| const int StreamDeviceInfo::kNoId = -1; |