Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Unified Diff: content/browser/devices_monitor/devices_monitor.h

Issue 10829073: Add DeviceMonitorLinux in BrowserMainLoop. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698