Index: content/browser/devices_monitor/devices_monitor.h |
=================================================================== |
--- content/browser/devices_monitor/devices_monitor.h (revision 0) |
+++ content/browser/devices_monitor/devices_monitor.h (revision 0) |
@@ -0,0 +1,32 @@ |
+// 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. |
+ |
+// The base class used to detect device change and notify base::SystemMonitor. |
+ |
+#ifndef CONTENT_BROWSER_DEVICES_MONITOR_DEVICES_MONITOR_H_ |
+#define CONTENT_BROWSER_DEVICES_MONITOR_DEVICES_MONITOR_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "base/system_monitor/system_monitor.h" |
+ |
+namespace content { |
+ |
+class DevicesMonitor { |
+ public: |
+ static DevicesMonitor* Create(); |
+ |
+ DevicesMonitor(); |
+ virtual ~DevicesMonitor(); |
+ |
+ virtual void Start(base::SystemMonitor::DevicesChangedObserver* observer) = 0; |
tommi (sloooow) - chröme
2012/07/30 11:07:04
I'm not grokking why we need to support observers
|
+ virtual void Stop(base::SystemMonitor::DevicesChangedObserver* observer) = 0; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(DevicesMonitor); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_DEVICES_MONITOR_DEVICES_MONITOR_H_ |
Property changes on: content/browser/devices_monitor/devices_monitor.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |