OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 // The base class used to detect device change and notify base::SystemMonitor. |
| 6 |
| 7 #ifndef CONTENT_BROWSER_DEVICES_MONITOR_DEVICES_MONITOR_H_ |
| 8 #define CONTENT_BROWSER_DEVICES_MONITOR_DEVICES_MONITOR_H_ |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/system_monitor/system_monitor.h" |
| 13 |
| 14 namespace content { |
| 15 |
| 16 class DevicesMonitor { |
| 17 public: |
| 18 static DevicesMonitor* Create(); |
| 19 |
| 20 DevicesMonitor(); |
| 21 virtual ~DevicesMonitor(); |
| 22 |
| 23 virtual void Start(base::SystemMonitor::DevicesChangedObserver* observer) = 0; |
| 24 virtual void Stop(base::SystemMonitor::DevicesChangedObserver* observer) = 0; |
| 25 |
| 26 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(DevicesMonitor); |
| 28 }; |
| 29 |
| 30 } // namespace content |
| 31 |
| 32 #endif // CONTENT_BROWSER_DEVICES_MONITOR_DEVICES_MONITOR_H_ |
OLD | NEW |