Disable force-compositing-mode on background pages
[chromium-blink-merge.git] / media / video / capture / video_capture_device_dummy.h
blobb009fc98251c06da900a0d2a32bf0276aed5c2b5
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 "media/video/capture/video_capture_device.h"
17 namespace media {
19 class VideoCaptureDeviceDummy : public VideoCaptureDevice {
20 public:
21 virtual void Allocate(int width, int height, int frame_rate,
22 VideoCaptureDevice::EventHandler* observer);
23 virtual void Start();
24 virtual void Stop();
25 virtual void DeAllocate();
27 private:
28 VideoCaptureDeviceDummy();
29 virtual ~VideoCaptureDeviceDummy();
31 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDummy);
34 } // namespace media
36 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_