Chromium Code Reviews| 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; |