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

Unified Diff: device/core/device_monitor_win.h

Issue 2417043002: Move device/core files to device/base directory. (Closed)
Patch Set: Fix ChromeOS build Created 4 years, 2 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
« no previous file with comments | « device/core/device_monitor_linux.cc ('k') | device/core/device_monitor_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/core/device_monitor_win.h
diff --git a/device/core/device_monitor_win.h b/device/core/device_monitor_win.h
deleted file mode 100644
index 36600e44cbcb545bcc98f9ac0020cd7668f86830..0000000000000000000000000000000000000000
--- a/device/core/device_monitor_win.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef DEVICE_CORE_DEVICE_MONITOR_WIN_H_
-#define DEVICE_CORE_DEVICE_MONITOR_WIN_H_
-
-#include <windows.h>
-
-#include "base/observer_list.h"
-#include "device/core/device_core_export.h"
-
-namespace device {
-
-// Use an instance of this class to observe devices being added and removed
-// from the system, matched by device interface GUID.
-class DEVICE_CORE_EXPORT DeviceMonitorWin {
- public:
- class DEVICE_CORE_EXPORT Observer {
- public:
- virtual void OnDeviceAdded(const GUID& class_guid,
- const std::string& device_path);
- virtual void OnDeviceRemoved(const GUID& class_guid,
- const std::string& device_path);
- };
-
- ~DeviceMonitorWin();
-
- static DeviceMonitorWin* GetForDeviceInterface(const GUID& guid);
- static DeviceMonitorWin* GetForAllInterfaces();
-
- void AddObserver(Observer* observer);
- void RemoveObserver(Observer* observer);
-
- private:
- friend class DeviceMonitorMessageWindow;
-
- DeviceMonitorWin();
-
- void NotifyDeviceAdded(const GUID& class_guid,
- const std::string& device_path);
- void NotifyDeviceRemoved(const GUID& class_guid,
- const std::string& device_path);
-
- base::ObserverList<Observer> observer_list_;
-};
-
-} // namespace device
-
-#endif // DEVICE_CORE_DEVICE_MONITOR_WIN_H_
« no previous file with comments | « device/core/device_monitor_linux.cc ('k') | device/core/device_monitor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698