diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/browser/renderer_host/video_capture_controller_event_handler.cc | 11 | ||||
-rw-r--r-- | content/browser/renderer_host/video_capture_controller_event_handler.h | 6 |
2 files changed, 5 insertions, 12 deletions
diff --git a/content/browser/renderer_host/video_capture_controller_event_handler.cc b/content/browser/renderer_host/video_capture_controller_event_handler.cc index ca6e348..e9fcf3f 100644 --- a/content/browser/renderer_host/video_capture_controller_event_handler.cc +++ b/content/browser/renderer_host/video_capture_controller_event_handler.cc @@ -4,15 +4,10 @@ #include "content/browser/renderer_host/video_capture_controller_event_handler.h" -VideoCaptureControllerID::VideoCaptureControllerID() - :routing_id(0), - device_id(0) {} - VideoCaptureControllerID::VideoCaptureControllerID(int32 rid, int did) - :routing_id(rid), - device_id(did) {} - -VideoCaptureControllerID::~VideoCaptureControllerID() {} + : routing_id(rid), + device_id(did) { +} bool VideoCaptureControllerID::operator<( const VideoCaptureControllerID& vc) const { diff --git a/content/browser/renderer_host/video_capture_controller_event_handler.h b/content/browser/renderer_host/video_capture_controller_event_handler.h index 74f4d24..0467941 100644 --- a/content/browser/renderer_host/video_capture_controller_event_handler.h +++ b/content/browser/renderer_host/video_capture_controller_event_handler.h @@ -12,10 +12,8 @@ // ID used for identifying an object of VideoCaptureController. struct VideoCaptureControllerID { - public: - VideoCaptureControllerID(); - VideoCaptureControllerID(int32 rid, int did); - ~VideoCaptureControllerID(); + VideoCaptureControllerID(int32 routing_id, int device_id); + bool operator<(const VideoCaptureControllerID& vc) const; int32 routing_id; |