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_manager.h" | 5 #include "content/browser/renderer_host/media/video_capture_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 #include "media/video/capture/fake_video_capture_device.h" | 10 #include "media/video/capture/fake_video_capture_device.h" |
11 #include "media/video/capture/video_capture_device.h" | 11 #include "media/video/capture/video_capture_device.h" |
12 | 12 |
13 namespace media_stream { | 13 namespace media_stream { |
14 | 14 |
15 // Starting id for the first capture session. | 15 // Starting id for the first capture session. |
16 // VideoCaptureManager::kStartOpenSessionId is used as default id without | 16 // VideoCaptureManager::kStartOpenSessionId is used as default id without |
17 // explicitly calling open device. | 17 // explicitly calling open device. |
18 enum { kFirstSessionId = VideoCaptureManager::kStartOpenSessionId + 1 }; | 18 enum { kFirstSessionId = VideoCaptureManager::kStartOpenSessionId + 1 }; |
19 | 19 |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 it != devices_.end(); | 364 it != devices_.end(); |
365 it++) { | 365 it++) { |
366 if (device_info.device_id == it->second->device_name().unique_id) { | 366 if (device_info.device_id == it->second->device_name().unique_id) { |
367 return true; | 367 return true; |
368 } | 368 } |
369 } | 369 } |
370 return false; | 370 return false; |
371 } | 371 } |
372 | 372 |
373 } // namespace media_stream | 373 } // namespace media_stream |
OLD | NEW |