| Index: content/browser/devices_monitor/devices_monitor_linux.h
|
| ===================================================================
|
| --- content/browser/devices_monitor/devices_monitor_linux.h (revision 0)
|
| +++ content/browser/devices_monitor/devices_monitor_linux.h (revision 0)
|
| @@ -0,0 +1,43 @@
|
| +// 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.
|
| +
|
| +// This class implements content::DevicesMonitor on Linux.
|
| +
|
| +#ifndef CONTENT_BROWSER_DEVICES_MONITOR_DEVICES_MONITOR_LINUX_H_
|
| +#define CONTENT_BROWSER_DEVICES_MONITOR_DEVICES_MONITOR_LINUX_H_
|
| +
|
| +#include <set>
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "content/browser/devices_monitor/devices_monitor.h"
|
| +
|
| +extern "C" {
|
| +struct udev_device;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +class UdevLinux;
|
| +
|
| +class DevicesMonitorLinux : public DevicesMonitor {
|
| + public:
|
| + DevicesMonitorLinux();
|
| + virtual ~DevicesMonitorLinux();
|
| +
|
| + virtual void Start(base::SystemMonitor::DevicesChangedObserver*) OVERRIDE;
|
| + virtual void Stop(base::SystemMonitor::DevicesChangedObserver*) OVERRIDE;
|
| +
|
| + private:
|
| + void OnDevicesChanged(udev_device* device);
|
| +
|
| + scoped_ptr<UdevLinux> udev_;
|
| + std::set<base::SystemMonitor::DevicesChangedObserver*> observers_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(DevicesMonitorLinux);
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_DEVICES_MONITOR_DEVICES_MONITOR_LINUX_H_
|
|
|
| Property changes on: content/browser/devices_monitor/devices_monitor_linux.h
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|