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

Unified Diff: content/child/power_monitor_broadcast_source.h

Issue 2460823002: Decouple Power Monitor from //content. (Closed)
Patch Set: code rebase Created 4 years, 1 month 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 | « content/child/child_thread_impl.cc ('k') | content/child/power_monitor_broadcast_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/power_monitor_broadcast_source.h
diff --git a/content/child/power_monitor_broadcast_source.h b/content/child/power_monitor_broadcast_source.h
deleted file mode 100644
index c5358eaed29978b583a3e7c82bb54348dab2d006..0000000000000000000000000000000000000000
--- a/content/child/power_monitor_broadcast_source.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2013 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 CONTENT_CHILD_POWER_MONITOR_BROADCAST_SOURCE_H_
-#define CONTENT_CHILD_POWER_MONITOR_BROADCAST_SOURCE_H_
-
-#include "base/macros.h"
-#include "base/power_monitor/power_monitor_source.h"
-#include "content/common/content_export.h"
-#include "device/power_monitor/public/interfaces/power_monitor.mojom.h"
-#include "mojo/public/cpp/bindings/binding.h"
-
-namespace content {
-
-// Receives Power Monitor IPC messages sent from the browser process and relays
-// them to the PowerMonitor of the current process.
-class CONTENT_EXPORT PowerMonitorBroadcastSource
- : public base::PowerMonitorSource,
- NON_EXPORTED_BASE(public device::mojom::PowerMonitorClient) {
- public:
- explicit PowerMonitorBroadcastSource();
- ~PowerMonitorBroadcastSource() override;
-
- void PowerStateChange(bool on_battery_power) override;
- void Suspend() override;
- void Resume() override;
-
- private:
- bool IsOnBatteryPowerImpl() override;
- bool last_reported_battery_power_state_;
- mojo::Binding<device::mojom::PowerMonitorClient> binding_;
-
- DISALLOW_COPY_AND_ASSIGN(PowerMonitorBroadcastSource);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_POWER_MONITOR_BROADCAST_SOURCE_H_
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/child/power_monitor_broadcast_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698