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

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

Issue 883293005: Cast: Basic cast_receiver API for chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed extra BUILD.gn line Created 5 years, 9 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
« no previous file with comments | « media/video/capture/win/sink_input_pin_win.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
11 11
12 // Avoid including strsafe.h via dshow as it will cause build warnings. 12 // Avoid including strsafe.h via dshow as it will cause build warnings.
13 #define NO_DSHOW_STRSAFE 13 #define NO_DSHOW_STRSAFE
14 #include <dshow.h> 14 #include <dshow.h>
15 15
16 #include <map> 16 #include <map>
17 #include <string> 17 #include <string>
18 18
19 #include "base/threading/non_thread_safe.h" 19 #include "base/threading/non_thread_safe.h"
20 #include "base/threading/thread.h" 20 #include "base/threading/thread.h"
21 #include "base/win/scoped_comptr.h" 21 #include "base/win/scoped_comptr.h"
22 #include "media/base/video_capture_types.h"
22 #include "media/video/capture/video_capture_device.h" 23 #include "media/video/capture/video_capture_device.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 VideoCaptureDevice,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Map of all capabilities this device support. 112 // Map of all capabilities this device support.
113 CapabilityList capabilities_; 113 CapabilityList capabilities_;
114 VideoCaptureFormat capture_format_; 114 VideoCaptureFormat capture_format_;
115 115
116 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin); 116 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceWin);
117 }; 117 };
118 118
119 } // namespace media 119 } // namespace media
120 120
121 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_ 121 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_WIN_H_
OLDNEW
« no previous file with comments | « media/video/capture/win/sink_input_pin_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698