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

Side by Side Diff: content/browser/device_monitor_mac.h

Issue 189443010: Mac AVFoundation/QTKit: delay DeviceMonitorMac startup to first GetUserMedia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rsesek@ comments Created 6 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 | 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 #ifndef CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_ 5 #ifndef CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_
6 #define CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_ 6 #define CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/system_monitor/system_monitor.h" 9 #include "base/system_monitor/system_monitor.h"
10 10
11 namespace { 11 namespace {
12 class DeviceMonitorMacImpl; 12 class DeviceMonitorMacImpl;
13 } 13 }
14 14
15 namespace content { 15 namespace content {
16 16
17 // Class to track audio/video devices removal or addition via callback to 17 // Class to track audio/video devices removal or addition via callback to
18 // base::SystemMonitor ProcessDevicesChanged(). A single object of this class 18 // base::SystemMonitor ProcessDevicesChanged(). A single object of this class
19 // is created from the browser main process and lives as long as this one. 19 // is created from the browser main process and lives as long as this one.
20 class DeviceMonitorMac { 20 class DeviceMonitorMac {
21 public: 21 public:
22 DeviceMonitorMac(); 22 DeviceMonitorMac();
23 ~DeviceMonitorMac(); 23 ~DeviceMonitorMac();
24 24
25 void StartMonitoring();
Robert Sesek 2014/03/10 18:45:25 nit: comment
mcasas 2014/03/11 07:57:32 Done.
26
25 // Method called by the internal DeviceMonitorMacImpl object 27 // Method called by the internal DeviceMonitorMacImpl object
26 // |device_monitor_impl_| when a device of type |type| has been added to or 28 // |device_monitor_impl_| when a device of type |type| has been added to or
27 // removed from the system. This code executes in the notification thread 29 // removed from the system. This code executes in the notification thread
28 // (QTKit or AVFoundation). 30 // (QTKit or AVFoundation).
29 void NotifyDeviceChanged(base::SystemMonitor::DeviceType type); 31 void NotifyDeviceChanged(base::SystemMonitor::DeviceType type);
30 32
31 private: 33 private:
32 scoped_ptr<DeviceMonitorMacImpl> device_monitor_impl_; 34 scoped_ptr<DeviceMonitorMacImpl> device_monitor_impl_;
33 35
34 DISALLOW_COPY_AND_ASSIGN(DeviceMonitorMac); 36 DISALLOW_COPY_AND_ASSIGN(DeviceMonitorMac);
35 }; 37 };
36 38
37 } // namespace content 39 } // namespace content
38 40
39 #endif // CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_ 41 #endif // CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698