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

Unified Diff: components/arc/power/arc_power_bridge.h

Issue 1596663002: arc-bridge: Introduce the ArcService class (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Rebased + protected ArcService direct instantiation Created 4 years, 11 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 | « components/arc/intent_helper/arc_intent_helper_bridge.cc ('k') | components/arc/power/arc_power_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/power/arc_power_bridge.h
diff --git a/components/arc/power/arc_power_bridge.h b/components/arc/power/arc_power_bridge.h
index 77c0263b6f085387e4aec5d698683ae1f5cf643e..a2f7b5875abfba2ed33652f89020c160117ecd21 100644
--- a/components/arc/power/arc_power_bridge.h
+++ b/components/arc/power/arc_power_bridge.h
@@ -2,23 +2,25 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_ARC_POWER_ARC_POWER_SERVICE_H_
-#define COMPONENTS_ARC_POWER_ARC_POWER_SERVICE_H_
+#ifndef COMPONENTS_ARC_POWER_ARC_POWER_BRIDGE_H_
+#define COMPONENTS_ARC_POWER_ARC_POWER_BRIDGE_H_
#include <map>
#include "base/macros.h"
#include "components/arc/arc_bridge_service.h"
+#include "components/arc/arc_service.h"
#include "mojo/public/cpp/bindings/binding.h"
namespace arc {
// ARC Power Client sets power management policy based on requests from
// ARC instances.
-class ArcPowerBridge : public ArcBridgeService::Observer,
+class ArcPowerBridge : public ArcService,
+ public ArcBridgeService::Observer,
public PowerHost {
public:
- explicit ArcPowerBridge(ArcBridgeService* arc_bridge_service);
+ explicit ArcPowerBridge(ArcBridgeService* bridge_service);
~ArcPowerBridge() override;
// ArcBridgeService::Observer overrides.
@@ -32,8 +34,6 @@ class ArcPowerBridge : public ArcBridgeService::Observer,
private:
void ReleaseAllDisplayWakeLocks();
- ArcBridgeService* arc_bridge_service_; // weak
-
mojo::Binding<PowerHost> binding_;
// Stores a mapping of type -> wake lock ID for all wake locks
@@ -45,4 +45,4 @@ class ArcPowerBridge : public ArcBridgeService::Observer,
} // namespace arc
-#endif // COMPONENTS_ARC_POWER_ARC_POWER_SERVICE_H_
+#endif // COMPONENTS_ARC_POWER_ARC_POWER_BRIDGE_H_
« no previous file with comments | « components/arc/intent_helper/arc_intent_helper_bridge.cc ('k') | components/arc/power/arc_power_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698