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

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

Issue 2143903003: [WIP] Move media/capture to device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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. DirectShow is used for 5 // Windows specific implementation of VideoCaptureDevice. DirectShow is used for
6 // capturing. DirectShow provide its own threads for capturing. 6 // capturing. DirectShow provide its own threads for capturing.
7 7
8 #ifndef MEDIA_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 8 #ifndef DEVICE_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
9 #define MEDIA_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 9 #define DEVICE_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
10 10
11 // Avoid including strsafe.h via dshow as it will cause build warnings. 11 // Avoid including strsafe.h via dshow as it will cause build warnings.
12 #define NO_DSHOW_STRSAFE 12 #define NO_DSHOW_STRSAFE
13 #include <dshow.h> 13 #include <dshow.h>
14 #include <stdint.h> 14 #include <stdint.h>
15 15
16 #include <map> 16 #include <map>
17 #include <string> 17 #include <string>
18 18
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/threading/thread_checker.h" 20 #include "base/threading/thread_checker.h"
21 #include "base/win/scoped_comptr.h" 21 #include "base/win/scoped_comptr.h"
22 #include "device/capture/video/video_capture_device.h"
23 #include "device/capture/video/win/capability_list_win.h"
24 #include "device/capture/video/win/sink_filter_win.h"
25 #include "device/capture/video/win/sink_input_pin_win.h"
22 #include "media/base/video_capture_types.h" 26 #include "media/base/video_capture_types.h"
23 #include "media/capture/video/video_capture_device.h"
24 #include "media/capture/video/win/capability_list_win.h"
25 #include "media/capture/video/win/sink_filter_win.h"
26 #include "media/capture/video/win/sink_input_pin_win.h"
27 27
28 namespace tracked_objects { 28 namespace tracked_objects {
29 class Location; 29 class Location;
30 } // namespace tracked_objects 30 } // namespace tracked_objects
31 31
32 namespace media { 32 namespace media {
33 33
34 // All the methods in the class can only be run on a COM initialized thread. 34 // All the methods in the class can only be run on a COM initialized thread.
35 class VideoCaptureDeviceWin : public VideoCaptureDevice, 35 class VideoCaptureDeviceWin : public VideoCaptureDevice,
36 public SinkFilterObserver { 36 public SinkFilterObserver {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 base::TimeTicks first_ref_time_; 115 base::TimeTicks first_ref_time_;
116 116
117 base::ThreadChecker thread_checker_; 117 base::ThreadChecker thread_checker_;
118 118
119 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin); 119 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin);
120 }; 120 };
121 121
122 } // namespace media 122 } // namespace media
123 123
124 #endif // MEDIA_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 124 #endif // DEVICE_CAPTURE_VIDEO_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
OLDNEW
« no previous file with comments | « device/capture/video/win/video_capture_device_mf_win.cc ('k') | device/capture/video/win/video_capture_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698