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

Unified Diff: device/battery/battery_monitor_impl.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_monitor.mojom ('k') | device/battery/battery_monitor_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/battery/battery_monitor_impl.h
diff --git a/device/battery/battery_monitor_impl.h b/device/battery/battery_monitor_impl.h
deleted file mode 100644
index 67be418d6854002507d250ecfdc879a370708b2d..0000000000000000000000000000000000000000
--- a/device/battery/battery_monitor_impl.h
+++ /dev/null
@@ -1,46 +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_MONITOR_IMPL_H_
-#define DEVICE_BATTERY_BATTERY_MONITOR_IMPL_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "device/battery/battery_export.h"
-#include "device/battery/battery_monitor.mojom.h"
-#include "device/battery/battery_status_service.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
-
-namespace device {
-
-class BatteryMonitorImpl : public mojom::BatteryMonitor {
- public:
- DEVICE_BATTERY_EXPORT static void Create(
- mojom::BatteryMonitorRequest request);
-
- BatteryMonitorImpl();
- ~BatteryMonitorImpl() override;
-
- private:
- // mojom::BatteryMonitor methods:
- void QueryNextStatus(const QueryNextStatusCallback& callback) override;
-
- void RegisterSubscription();
- void DidChange(const mojom::BatteryStatus& battery_status);
- void ReportStatus();
-
- mojo::StrongBindingPtr<mojom::BatteryMonitor> binding_;
- std::unique_ptr<BatteryStatusService::BatteryUpdateSubscription>
- subscription_;
- QueryNextStatusCallback callback_;
- mojom::BatteryStatus status_;
- bool status_to_report_;
-
- DISALLOW_COPY_AND_ASSIGN(BatteryMonitorImpl);
-};
-
-} // namespace device
-
-#endif // DEVICE_BATTERY_BATTERY_MONITOR_IMPL_H_
« no previous file with comments | « device/battery/battery_monitor.mojom ('k') | device/battery/battery_monitor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698