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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_
6 #define CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_
8 #include "base/basictypes.h"
9 #include "base/system_monitor/system_monitor.h"
12 class DeviceMonitorMacImpl
;
17 // Class to track audio/video devices removal or addition via callback to
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.
20 class DeviceMonitorMac
{
25 // Method called by the internal DeviceMonitorMacImpl object
26 // |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
28 // (QTKit or AVFoundation).
29 void NotifyDeviceChanged(base::SystemMonitor::DeviceType type
);
32 scoped_ptr
<DeviceMonitorMacImpl
> device_monitor_impl_
;
34 DISALLOW_COPY_AND_ASSIGN(DeviceMonitorMac
);
37 } // namespace content
39 #endif // CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_