Index: content/browser/device_monitor_mac.h |
diff --git a/content/browser/device_monitor_mac.h b/content/browser/device_monitor_mac.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b25773004f9dda68c278f097d1f0ad18e2eebdac |
--- /dev/null |
+++ b/content/browser/device_monitor_mac.h |
@@ -0,0 +1,34 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_ |
+#define CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_ |
+ |
+#include <IOKit/IOKitLib.h> |
+ |
+#include "base/basictypes.h" |
+ |
+namespace content { |
+ |
+class DeviceMonitorMac { |
+ public: |
+ DeviceMonitorMac(); |
+ ~DeviceMonitorMac(); |
+ |
+ private: |
+ void RegisterVideoCallbacks(IONotificationPortRef port); |
+ void RegisterAudioCallbacks(IONotificationPortRef port); |
+ |
+ static void VideoDeviceChangedCallback(void *context, io_iterator_t devices); |
+ static void AudioDeviceChangedCallback(void *context, io_iterator_t devices); |
+ |
+ void NotifyAudioDeviceChanged(); |
+ void NotifyVideoDeviceChanged(); |
wjia(left Chromium)
2012/08/03 13:50:08
It seems you can move all these 6 private function
no longer working on chromium
2012/08/03 16:10:15
Thanks for the ideas. Yes, we can. But then the cl
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(DeviceMonitorMac); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_ |