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

Side by Side Diff: media/capture/device_monitor_mac.h

Issue 1815983003: Remove deprecated QTKit Video Capture Support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 8 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/capture/BUILD.gn ('k') | media/capture/device_monitor_mac.mm » ('j') | 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 #ifndef MEDIA_CAPTURE_DEVICE_MONITOR_MAC_H_ 5 #ifndef MEDIA_CAPTURE_DEVICE_MONITOR_MAC_H_
6 #define MEDIA_CAPTURE_DEVICE_MONITOR_MAC_H_ 6 #define MEDIA_CAPTURE_DEVICE_MONITOR_MAC_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/system_monitor/system_monitor.h" 9 #include "base/system_monitor/system_monitor.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 15 matching lines...) Expand all
26 26
27 // Registers the observers for the audio/video device removal, connection and 27 // Registers the observers for the audio/video device removal, connection and
28 // suspension. The AVFoundation library is also loaded and initialised if the 28 // suspension. The AVFoundation library is also loaded and initialised if the
29 // OS supports it. The |device_task_runner| argument represents the thread on 29 // OS supports it. The |device_task_runner| argument represents the thread on
30 // which device enumeration will occur. 30 // which device enumeration will occur.
31 void StartMonitoring( 31 void StartMonitoring(
32 const scoped_refptr<base::SingleThreadTaskRunner>& device_task_runner); 32 const scoped_refptr<base::SingleThreadTaskRunner>& device_task_runner);
33 33
34 // Method called by the internal DeviceMonitorMacImpl object 34 // Method called by the internal DeviceMonitorMacImpl object
35 // |device_monitor_impl_| when a device of type |type| has been added to or 35 // |device_monitor_impl_| when a device of type |type| has been added to or
36 // removed from the system. This code executes in the notification thread 36 // removed from the system. This code executes in the notification thread.
37 // (QTKit or AVFoundation).
38 void NotifyDeviceChanged(base::SystemMonitor::DeviceType type); 37 void NotifyDeviceChanged(base::SystemMonitor::DeviceType type);
39 38
40 private: 39 private:
41 scoped_ptr<DeviceMonitorMacImpl> device_monitor_impl_; 40 scoped_ptr<DeviceMonitorMacImpl> device_monitor_impl_;
42 41
43 // |thread_checker_| is used to check that constructor and StartMonitoring() 42 // |thread_checker_| is used to check that constructor and StartMonitoring()
44 // are called in the correct thread, the UI thread, that also owns the object. 43 // are called in the correct thread, the UI thread, that also owns the object.
45 base::ThreadChecker thread_checker_; 44 base::ThreadChecker thread_checker_;
46 45
47 DISALLOW_COPY_AND_ASSIGN(DeviceMonitorMac); 46 DISALLOW_COPY_AND_ASSIGN(DeviceMonitorMac);
48 }; 47 };
49 48
50 } // namespace content 49 } // namespace content
51 50
52 #endif // MEDIA_CAPTURE_DEVICE_MONITOR_MAC_H_ 51 #endif // MEDIA_CAPTURE_DEVICE_MONITOR_MAC_H_
OLDNEW
« no previous file with comments | « media/capture/BUILD.gn ('k') | media/capture/device_monitor_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698