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

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

Issue 10830063: refactor EnumerateDevices to make it a persistent request. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unit test Created 8 years, 4 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/renderer/media/media_stream_dispatcher.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
===================================================================
--- content/common/media/media_stream_options.cc (revision 150440)
+++ content/common/media/media_stream_options.cc (working copy)
@@ -24,4 +24,14 @@
in_use(opened),
session_id(kNoId) {}
+// static
+bool StreamDeviceInfo::IsEqual(const StreamDeviceInfo& first,
+ const StreamDeviceInfo& second) {
+ return first.stream_type == second.stream_type &&
+ first.name == second.name &&
+ first.device_id == second.device_id &&
+ first.in_use == second.in_use &&
+ first.session_id == second.session_id;
+}
+
} // namespace media_stream
« no previous file with comments | « content/common/media/media_stream_options.h ('k') | content/renderer/media/media_stream_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698