cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / media / video / capture / video_capture_device_dummy.h
blobc4a95cb0ce28f98c71a9d7ac57e8422cded804cf
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.
8 //
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"
18 namespace media {
20 class VideoCaptureDeviceDummy : public VideoCaptureDevice {
21 public:
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;
28 private:
29 VideoCaptureDeviceDummy();
30 virtual ~VideoCaptureDeviceDummy();
32 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDummy);
35 } // namespace media
37 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_