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

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: Addressed feedback 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
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..d43fb745f4e1745aeeb3b722745c1645fd97e3a8 100644
--- a/components/arc/power/arc_power_bridge.h
+++ b/components/arc/power/arc_power_bridge.h
@@ -2,20 +2,22 @@
// 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);
@@ -32,7 +34,7 @@ class ArcPowerBridge : public ArcBridgeService::Observer,
private:
void ReleaseAllDisplayWakeLocks();
- ArcBridgeService* arc_bridge_service_; // weak
+ ArcBridgeService* const arc_bridge_service_; // owned by ArcServiceManager.
mojo::Binding<PowerHost> binding_;
@@ -45,4 +47,4 @@ class ArcPowerBridge : public ArcBridgeService::Observer,
} // namespace arc
-#endif // COMPONENTS_ARC_POWER_ARC_POWER_SERVICE_H_
+#endif // COMPONENTS_ARC_POWER_ARC_POWER_BRIDGE_H_

Powered by Google App Engine
This is Rietveld 408576698