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

Unified Diff: device/battery/battery_status_manager.h

Issue 2818673003: [DeviceService] Expose battery monitoring solely via the Device Service (Closed)
Patch Set: Java file format change Created 3 years, 8 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_chromeos.cc » ('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/device/battery/battery_status_manager.h b/device/battery/battery_status_manager.h
deleted file mode 100644
index b80579bc6a3028c5bffafc1c6d75b7d19ae4f651..0000000000000000000000000000000000000000
--- a/device/battery/battery_status_manager.h
+++ /dev/null
@@ -1,36 +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_BATTERY_BATTERY_STATUS_MANAGER_H_
-#define DEVICE_BATTERY_BATTERY_STATUS_MANAGER_H_
-
-#include <memory>
-
-#include "device/battery/battery_status_service.h"
-
-namespace device {
-
-// Platform specific manager class for fetching battery status data.
-class BatteryStatusManager {
- public:
- // Creates a BatteryStatusManager object. |callback| should be called when the
- // battery status changes.
- static std::unique_ptr<BatteryStatusManager> Create(
- const BatteryStatusService::BatteryUpdateCallback& callback);
-
- virtual ~BatteryStatusManager() {}
-
- // Start listening for battery status changes. New updates are signalled
- // by invoking the callback provided at construction time.
- // Note that this is called in the IO thread.
- virtual bool StartListeningBatteryChange() = 0;
-
- // Stop listening for battery status changes.
- // Note that this is called in the IO thread.
- virtual void StopListeningBatteryChange() = 0;
-};
-
-} // namespace device
-
-#endif // DEVICE_BATTERY_BATTERY_STATUS_MANAGER_H_
« no previous file with comments | « device/battery/battery_status.mojom ('k') | device/battery/battery_status_manager_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698