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

Unified Diff: device/power_monitor/power_monitor_message_broadcaster.h

Issue 2460823002: Decouple Power Monitor from //content. (Closed)
Patch Set: 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
Index: device/power_monitor/power_monitor_message_broadcaster.h
diff --git a/content/browser/power_monitor_message_broadcaster.h b/device/power_monitor/power_monitor_message_broadcaster.h
similarity index 75%
rename from content/browser/power_monitor_message_broadcaster.h
rename to device/power_monitor/power_monitor_message_broadcaster.h
index effa1e9e4f6cfc5724be2a0029eecbae0770e820..718fb406bbac0cc3b9106a28eae9666483dbc5c5 100644
--- a/content/browser/power_monitor_message_broadcaster.h
+++ b/device/power_monitor/power_monitor_message_broadcaster.h
@@ -2,19 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_POWER_MONITOR_MESSAGE_BROADCASTER_H_
-#define CONTENT_BROWSER_POWER_MONITOR_MESSAGE_BROADCASTER_H_
+#ifndef DEVICE_POWER_MONITOR_POWER_MONITOR_MESSAGE_BROADCASTER_H_
+#define DEVICE_POWER_MONITOR_POWER_MONITOR_MESSAGE_BROADCASTER_H_
#include "base/macros.h"
#include "base/power_monitor/power_observer.h"
-#include "content/common/content_export.h"
+#include "device/power_monitor/power_monitor_export.h"
#include "device/power_monitor/public/interfaces/power_monitor.mojom.h"
-namespace content {
+namespace device {
// A class used to monitor the power state change and communicate it to child
// processes via IPC.
-class CONTENT_EXPORT PowerMonitorMessageBroadcaster
+class DEVICE_POWER_MONITOR_EXPORT PowerMonitorMessageBroadcaster
: public base::PowerObserver,
NON_EXPORTED_BASE(public device::mojom::PowerMonitor) {
public:
@@ -38,6 +38,6 @@ class CONTENT_EXPORT PowerMonitorMessageBroadcaster
DISALLOW_COPY_AND_ASSIGN(PowerMonitorMessageBroadcaster);
};
-} // namespace content
+} // namespace device
-#endif // CONTENT_BROWSER_POWER_MONITOR_MESSAGE_BROADCASTER_H_
+#endif // DEVICE_POWER_MONITOR_POWER_MONITOR_MESSAGE_BROADCASTER_H_

Powered by Google App Engine
This is Rietveld 408576698