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

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

Issue 2538033003: Implement GetUserMedia device ID constraint processing in the renderer. (Closed)
Patch Set: fixes Created 4 years 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
Index: content/common/media/media_stream_options.h
diff --git a/content/common/media/media_stream_options.h b/content/common/media/media_stream_options.h
index 2eb5628342534ddd987023bfc011634a1824388d..556b846637d2e61abf0d906d78799b415a629d4b 100644
--- a/content/common/media/media_stream_options.h
+++ b/content/common/media/media_stream_options.h
@@ -33,13 +33,9 @@ struct CONTENT_EXPORT TrackControls {
// Consider replacing with MediaStreamType enum variables.
std::string stream_source; // audio.kMediaStreamSource
- // Device ID requests.
- // The first set represents required devices - either grab one or fail.
- // The second set represents optional devices - if we can't get one of
- // these, we will grab the default device (if possible).
- // The constraint names are "sourceId" and "chromeMediaSourceId".
- std::vector<std::string> device_ids;
- std::vector<std::string> alternate_device_ids;
+ // Empty string represents the default device.
+ // Nonempty string represents a specific device.
hta - Chromium 2016/11/30 18:51:42 Nit, English: "An empty string represents the defa
Guido Urdaneta 2016/12/01 10:28:53 Done.
+ std::string device_id;
};
// StreamControls describes what is sent to the browser process

Powered by Google App Engine
This is Rietveld 408576698