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

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

Issue 2133503002: arc: Revamp the ArcBridgeService interface (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: More rebasing Created 4 years, 5 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/obb_mounter/arc_obb_mounter_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 d82aad664293a37e410527605ab3df16b3f2db4a..c82c380ce05aab53e3cf6463f1122bb929ba8618 100644
--- a/components/arc/power/arc_power_bridge.h
+++ b/components/arc/power/arc_power_bridge.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "components/arc/arc_bridge_service.h"
#include "components/arc/arc_service.h"
+#include "components/arc/instance_holder.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "ui/display/chromeos/display_configurator.h"
@@ -18,16 +19,16 @@ namespace arc {
// ARC Power Client sets power management policy based on requests from
// ARC instances.
class ArcPowerBridge : public ArcService,
- public ArcBridgeService::Observer,
+ public InstanceHolder<mojom::PowerInstance>::Observer,
public ui::DisplayConfigurator::Observer,
public mojom::PowerHost {
public:
explicit ArcPowerBridge(ArcBridgeService* bridge_service);
~ArcPowerBridge() override;
- // ArcBridgeService::Observer overrides.
- void OnPowerInstanceReady() override;
- void OnPowerInstanceClosed() override;
+ // InstanceHolder<mojom::PowerInstance>::Observer overrides.
+ void OnInstanceReady() override;
+ void OnInstanceClosed() override;
// DisplayConfigurator::Observer overrides.
void OnPowerStateChanged(chromeos::DisplayPowerState power_state) override;
« no previous file with comments | « components/arc/obb_mounter/arc_obb_mounter_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