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 namespace content { |
| 8 |
7 VideoCaptureControllerID::VideoCaptureControllerID(int did) | 9 VideoCaptureControllerID::VideoCaptureControllerID(int did) |
8 : device_id(did) { | 10 : device_id(did) { |
9 } | 11 } |
10 | 12 |
11 bool VideoCaptureControllerID::operator<( | 13 bool VideoCaptureControllerID::operator<( |
12 const VideoCaptureControllerID& vc) const { | 14 const VideoCaptureControllerID& vc) const { |
13 return this->device_id < vc.device_id; | 15 return this->device_id < vc.device_id; |
14 } | 16 } |
15 | 17 |
16 bool VideoCaptureControllerID::operator==( | 18 bool VideoCaptureControllerID::operator==( |
17 const VideoCaptureControllerID& vc) const { | 19 const VideoCaptureControllerID& vc) const { |
18 return this->device_id == vc.device_id; | 20 return this->device_id == vc.device_id; |
19 } | 21 } |
| 22 |
| 23 } // namespace content |
OLD | NEW |