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

Unified Diff: content/browser/power_monitor_message_broadcaster.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
Index: content/browser/power_monitor_message_broadcaster.h
diff --git a/content/browser/power_monitor_message_broadcaster.h b/content/browser/power_monitor_message_broadcaster.h
deleted file mode 100644
index effa1e9e4f6cfc5724be2a0029eecbae0770e820..0000000000000000000000000000000000000000
--- a/content/browser/power_monitor_message_broadcaster.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 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_BROWSER_POWER_MONITOR_MESSAGE_BROADCASTER_H_
-#define CONTENT_BROWSER_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/public/interfaces/power_monitor.mojom.h"
-
-namespace content {
-
-// A class used to monitor the power state change and communicate it to child
-// processes via IPC.
-class CONTENT_EXPORT PowerMonitorMessageBroadcaster
- : public base::PowerObserver,
- NON_EXPORTED_BASE(public device::mojom::PowerMonitor) {
- public:
- explicit PowerMonitorMessageBroadcaster();
- ~PowerMonitorMessageBroadcaster() override;
-
- static void Create(device::mojom::PowerMonitorRequest request);
-
- // Implement device::mojom::PowerMonitor:
- void SetClient(
- device::mojom::PowerMonitorClientPtr power_monitor_client) override;
-
- // Implement PowerObserver:
- void OnPowerStateChange(bool on_battery_power) override;
- void OnSuspend() override;
- void OnResume() override;
-
- private:
- device::mojom::PowerMonitorClientPtr power_monitor_client_;
-
- DISALLOW_COPY_AND_ASSIGN(PowerMonitorMessageBroadcaster);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_POWER_MONITOR_MESSAGE_BROADCASTER_H_
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/power_monitor_message_broadcaster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698