Save errno for logging before potentially overwriting it.
[chromium-blink-merge.git] / content / browser / renderer_host / media / video_capture_controller_event_handler.cc
blob7d2d0be32831e7d55de8e8d19dbca087b7d5c4e7
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
3 // found in the LICENSE file.
5 #include "content/browser/renderer_host/media/video_capture_controller_event_handler.h"
7 namespace content {
9 VideoCaptureControllerID::VideoCaptureControllerID(int did)
10 : device_id(did) {
13 bool VideoCaptureControllerID::operator<(
14 const VideoCaptureControllerID& vc) const {
15 return this->device_id < vc.device_id;
18 bool VideoCaptureControllerID::operator==(
19 const VideoCaptureControllerID& vc) const {
20 return this->device_id == vc.device_id;
23 } // namespace content