OLD | NEW |
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 // MacOSX implementation of generic VideoCaptureDevice, using either QTKit or | 5 // MacOSX implementation of generic VideoCaptureDevice, using either QTKit or |
6 // AVFoundation as native capture API. QTKit is available in all OSX versions, | 6 // AVFoundation as native capture API. QTKit is available in all OSX versions, |
7 // although namely deprecated in 10.9, and AVFoundation is available in versions | 7 // although namely deprecated in 10.9, and AVFoundation is available in versions |
8 // 10.7 (Lion) and later. | 8 // 10.7 (Lion) and later. |
9 | 9 |
10 #ifndef MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ | 10 #ifndef MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ |
11 #define MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ | 11 #define MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ |
12 | 12 |
13 #import <Foundation/Foundation.h> | 13 #import <Foundation/Foundation.h> |
14 | 14 |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/mac/scoped_nsobject.h" | 18 #include "base/mac/scoped_nsobject.h" |
19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
| 21 #include "media/base/video_capture_types.h" |
21 #include "media/video/capture/video_capture_device.h" | 22 #include "media/video/capture/video_capture_device.h" |
22 #include "media/video/capture/video_capture_types.h" | |
23 | 23 |
24 @protocol PlatformVideoCapturingMac; | 24 @protocol PlatformVideoCapturingMac; |
25 | 25 |
26 namespace base { | 26 namespace base { |
27 class SingleThreadTaskRunner; | 27 class SingleThreadTaskRunner; |
28 } | 28 } |
29 | 29 |
30 // Small class to bundle device name and connection type into a dictionary. | 30 // Small class to bundle device name and connection type into a dictionary. |
31 MEDIA_EXPORT | 31 MEDIA_EXPORT |
32 @interface DeviceNameAndTransportType : NSObject { | 32 @interface DeviceNameAndTransportType : NSObject { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // VideoCaptureDeviceMac is destroyed. | 111 // VideoCaptureDeviceMac is destroyed. |
112 // NOTE: Weak pointers must be invalidated before all other member variables. | 112 // NOTE: Weak pointers must be invalidated before all other member variables. |
113 base::WeakPtrFactory<VideoCaptureDeviceMac> weak_factory_; | 113 base::WeakPtrFactory<VideoCaptureDeviceMac> weak_factory_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceMac); | 115 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceMac); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace media | 118 } // namespace media |
119 | 119 |
120 #endif // MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ | 120 #endif // MEDIA_VIDEO_CAPTURE_MAC_VIDEO_CAPTURE_DEVICE_MAC_H_ |
OLD | NEW |