OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" | 5 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" |
6 | 6 |
7 VideoCaptureControllerID::VideoCaptureControllerID(int did) | 7 VideoCaptureControllerID::VideoCaptureControllerID(int did) |
8 : device_id(did) { | 8 : device_id(did) { |
9 } | 9 } |
10 | 10 |
11 bool VideoCaptureControllerID::operator<( | 11 bool VideoCaptureControllerID::operator<( |
12 const VideoCaptureControllerID& vc) const { | 12 const VideoCaptureControllerID& vc) const { |
13 return this->device_id < vc.device_id; | 13 return this->device_id < vc.device_id; |
14 } | 14 } |
| 15 |
| 16 bool VideoCaptureControllerID::operator==( |
| 17 const VideoCaptureControllerID& vc) const { |
| 18 return this->device_id == vc.device_id; |
| 19 } |
OLD | NEW |