Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: content/browser/renderer_host/media/video_capture_manager.cc

Issue 8340028: Salient parts of http://codereview.chromium.org/8392042/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698