Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(456)

Side by Side Diff: media/video/capture/video_capture_device_dummy.h

Issue 24133002: Make VideoCaptureController single-threaded and not ref counted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a memory leak Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
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.
11
12 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_
13 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_
14
15 #include "base/compiler_specific.h"
16 #include "media/video/capture/video_capture_device.h"
17
18 namespace media {
19
20 class VideoCaptureDeviceDummy : public VideoCaptureDevice {
Ami GONE FROM CHROMIUM 2013/09/13 21:17:59 lolol
ncarter (slow) 2013/09/14 00:07:24 Done.
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;
27
28 private:
29 VideoCaptureDeviceDummy();
30 virtual ~VideoCaptureDeviceDummy();
31
32 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceDummy);
33 };
34
35 } // namespace media
36
37 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_DUMMY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698