Chromium Code Reviews| 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 #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 { | |
| 12 class MacMonitor; | |
| 13 } | |
| 14 | |
| 11 namespace content { | 15 namespace content { |
| 12 | 16 |
| 13 class DeviceMonitorMac { | 17 class DeviceMonitorMac { |
|
Robert Sesek
2013/10/15 20:44:46
This, like all top-level public declarations, need
mcasas
2013/10/16 11:04:40
Done.
| |
| 14 public: | 18 public: |
| 15 DeviceMonitorMac(); | 19 DeviceMonitorMac(); |
| 16 ~DeviceMonitorMac(); | 20 ~DeviceMonitorMac(); |
| 17 | 21 |
| 18 private: | |
| 19 // Forward the notifications to system monitor. | |
| 20 void NotifyDeviceChanged(base::SystemMonitor::DeviceType type); | 22 void NotifyDeviceChanged(base::SystemMonitor::DeviceType type); |
|
Robert Sesek
2013/10/15 20:44:46
As does this. Where am I notified?
mcasas
2013/10/16 11:04:40
Done.
| |
| 21 | 23 |
| 22 class QTMonitorImpl; | 24 private: |
| 23 scoped_ptr<DeviceMonitorMac::QTMonitorImpl> qt_monitor_; | 25 scoped_ptr<MacMonitor> device_monitor_impl_; |
| 26 | |
| 24 DISALLOW_COPY_AND_ASSIGN(DeviceMonitorMac); | 27 DISALLOW_COPY_AND_ASSIGN(DeviceMonitorMac); |
| 25 }; | 28 }; |
| 26 | 29 |
| 27 } // namespace content | 30 } // namespace content |
| 28 | 31 |
| 29 #endif // CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_ | 32 #endif // CONTENT_BROWSER_DEVICE_MONITOR_MAC_H_ |
| OLD | NEW |