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

Unified Diff: device/battery/battery_status_manager.h

Issue 592153002: Replace Chrome IPC with Mojo IPC for querying BatteryStatus service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Tom's comment. Created 6 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/battery/battery_status.mojom ('k') | device/battery/battery_status_manager_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/battery/battery_status_manager.h
diff --git a/content/browser/battery_status/battery_status_manager.h b/device/battery/battery_status_manager.h
similarity index 70%
rename from content/browser/battery_status/battery_status_manager.h
rename to device/battery/battery_status_manager.h
index 6d312e7988cc44d502029e9a62fd3188792052e6..5d8d8b81f428fbbf0fbbc2723b7fbae63d2f2cd2 100644
--- a/content/browser/battery_status/battery_status_manager.h
+++ b/device/battery/battery_status_manager.h
@@ -2,17 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_H_
-#define CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_H_
+#ifndef DEVICE_BATTERY_BATTERY_STATUS_MANAGER_H_
+#define DEVICE_BATTERY_BATTERY_STATUS_MANAGER_H_
#include "base/memory/scoped_ptr.h"
-#include "build/build_config.h"
-#include "content/browser/battery_status/battery_status_service.h"
+#include "device/battery/battery_status_service.h"
-namespace content {
+namespace device {
// Platform specific manager class for fetching battery status data.
-class CONTENT_EXPORT BatteryStatusManager {
+class BatteryStatusManager {
public:
// Creates a BatteryStatusManager object. |callback| should be called when the
// battery status changes.
@@ -31,6 +30,6 @@ class CONTENT_EXPORT BatteryStatusManager {
virtual void StopListeningBatteryChange() = 0;
};
-} // namespace content
+} // namespace device
-#endif // CHROME_BROWSER_BATTERY_STATUS_BATTERY_STATUS_MANAGER_H_
+#endif // DEVICE_BATTERY_BATTERY_STATUS_MANAGER_H_
« no previous file with comments | « device/battery/battery_status.mojom ('k') | device/battery/battery_status_manager_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698