Disable firewall check. It takes signifficant time, need to be on FILE thread.
[chromium-blink-merge.git] / media / video / capture / video_capture_device_factory.cc
blobe63225dc178c9ea375bd62f965ccea9440b73f4f
1 // Copyright 2014 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 "media/video/capture/video_capture_device_factory.h"
7 namespace media {
9 VideoCaptureDeviceFactory::VideoCaptureDeviceFactory() {
10 thread_checker_.DetachFromThread();
13 scoped_ptr<VideoCaptureDevice> VideoCaptureDeviceFactory::Create(
14 const VideoCaptureDevice::Name& device_name) {
15 DCHECK(thread_checker_.CalledOnValidThread());
16 return scoped_ptr<VideoCaptureDevice>(
17 VideoCaptureDevice::Create(device_name));
20 void VideoCaptureDeviceFactory::GetDeviceNames(
21 VideoCaptureDevice::Names* device_names) {
22 DCHECK(thread_checker_.CalledOnValidThread());
23 VideoCaptureDevice::GetDeviceNames(device_names);
26 void VideoCaptureDeviceFactory::GetDeviceSupportedFormats(
27 const VideoCaptureDevice::Name& device,
28 VideoCaptureFormats* supported_formats) {
29 DCHECK(thread_checker_.CalledOnValidThread());
30 VideoCaptureDevice::GetDeviceSupportedFormats(device, supported_formats);
33 } // namespace media