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 "media/video/capture/video_capture_device.h"
19 class VideoCaptureDeviceDummy
: public VideoCaptureDevice
{
21 virtual void Allocate(int width
, int height
, int frame_rate
,
22 VideoCaptureDevice::EventHandler
* observer
);
25 virtual void DeAllocate();
28 VideoCaptureDeviceDummy();
29 virtual ~VideoCaptureDeviceDummy();
31 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDummy
);
36 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_