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

Unified Diff: media/video/capture/video_capture_device.h

Issue 17402002: Reconnect support for DirectShow video capture devices in parallel to MediaFoundation ones. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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
Index: media/video/capture/video_capture_device.h
diff --git a/media/video/capture/video_capture_device.h b/media/video/capture/video_capture_device.h
index 9177302a92f9528d60da6b6c999c12b5f2b0b4f0..2c95d691047dc781baea5535be7ef0d3f9115a7d 100644
--- a/media/video/capture/video_capture_device.h
+++ b/media/video/capture/video_capture_device.h
@@ -31,6 +31,13 @@ class MEDIA_EXPORT VideoCaptureDevice {
// Unique name of a device. Even if there are multiple devices with the same
// friendly name connected to the computer this will be unique.
std::string unique_id;
+
+ friend bool operator==(const Name& left, const Name& right) {
tommi (sloooow) - chröme 2013/06/24 11:09:27 In general operator overloading is discouraged but
mcasas 2013/06/25 07:04:36 Ok, supposition correct, done.
+ return (left.unique_id == right.unique_id);
+ }
+ bool operator<(const Name& other) {
+ return (this->unique_id < other.unique_id);
tommi (sloooow) - chröme 2013/06/24 11:09:27 remove "this->"
mcasas 2013/06/25 07:04:36 Done.
+ }
};
typedef std::list<Name> Names;

Powered by Google App Engine
This is Rietveld 408576698