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

Side by Side Diff: media/video/capture/win/video_capture_device_win.h

Issue 24133002: Make VideoCaptureController single-threaded and not ref counted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git pull 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Windows specific implementation of VideoCaptureDevice. 5 // Windows specific implementation of VideoCaptureDevice.
6 // DirectShow is used for capturing. DirectShow provide its own threads 6 // DirectShow is used for capturing. DirectShow provide its own threads
7 // for capturing. 7 // for capturing.
8 8
9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
(...skipping 12 matching lines...) Expand all
23 #include "media/video/capture/video_capture_types.h" 23 #include "media/video/capture/video_capture_types.h"
24 #include "media/video/capture/win/capability_list_win.h" 24 #include "media/video/capture/win/capability_list_win.h"
25 #include "media/video/capture/win/sink_filter_win.h" 25 #include "media/video/capture/win/sink_filter_win.h"
26 #include "media/video/capture/win/sink_input_pin_win.h" 26 #include "media/video/capture/win/sink_input_pin_win.h"
27 27
28 namespace media { 28 namespace media {
29 29
30 // All the methods in the class can only be run on a COM initialized thread. 30 // All the methods in the class can only be run on a COM initialized thread.
31 class VideoCaptureDeviceWin 31 class VideoCaptureDeviceWin
32 : public base::NonThreadSafe, 32 : public base::NonThreadSafe,
33 public VideoCaptureDevice, 33 public VideoCaptureDevice1,
34 public SinkFilterObserver { 34 public SinkFilterObserver {
35 public: 35 public:
36 explicit VideoCaptureDeviceWin(const Name& device_name); 36 explicit VideoCaptureDeviceWin(const Name& device_name);
37 virtual ~VideoCaptureDeviceWin(); 37 virtual ~VideoCaptureDeviceWin();
38 // Opens the device driver for this device. 38 // Opens the device driver for this device.
39 // This function is used by the static VideoCaptureDevice::Create function. 39 // This function is used by the static VideoCaptureDevice::Create function.
40 bool Init(); 40 bool Init();
41 41
42 // VideoCaptureDevice implementation. 42 // VideoCaptureDevice implementation.
43 virtual void Allocate(const VideoCaptureCapability& capture_format, 43 virtual void Allocate(const VideoCaptureCapability& capture_format,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 // Map of all capabilities this device support. 83 // Map of all capabilities this device support.
84 CapabilityList capabilities_; 84 CapabilityList capabilities_;
85 85
86 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin); 86 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin);
87 }; 87 };
88 88
89 } // namespace media 89 } // namespace media
90 90
91 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 91 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698