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 // A dummy implementation of VideoCaptureDevice to use for platforms without
6 // real video capture support. The class will be removed once the other
7 // platforms have real video capture device support.
9 // TODO(mflodman) Remove when video_capture_device_mac and
10 // video_capture_device_win are available.
12 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_
13 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_
15 #include "base/compiler_specific.h"
16 #include "media/video/capture/video_capture_device.h"
20 class VideoCaptureDeviceDummy
: public VideoCaptureDevice
{
22 virtual void Allocate(const VideoCaptureCapability
& capture_format
,
23 VideoCaptureDevice::EventHandler
* observer
) OVERRIDE
;
24 virtual void Start() OVERRIDE
;
25 virtual void Stop() OVERRIDE
;
26 virtual void DeAllocate() OVERRIDE
;
29 VideoCaptureDeviceDummy();
30 virtual ~VideoCaptureDeviceDummy();
32 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDummy
);
37 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_