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

Unified Diff: components/arc/intent_helper/arc_intent_helper_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
Index: components/arc/intent_helper/arc_intent_helper_bridge.h
diff --git a/components/arc/intent_helper/arc_intent_helper_bridge.h b/components/arc/intent_helper/arc_intent_helper_bridge.h
index 4adbe472bf057bdce5fafa37a08932c4d1888a84..a48e90e85da7e0fc0bb31625371b233dc6c33136 100644
--- a/components/arc/intent_helper/arc_intent_helper_bridge.h
+++ b/components/arc/intent_helper/arc_intent_helper_bridge.h
@@ -15,6 +15,7 @@
#include "components/arc/arc_bridge_service.h"
#include "components/arc/arc_service.h"
#include "components/arc/common/intent_helper.mojom.h"
+#include "components/arc/instance_holder.h"
#include "mojo/public/cpp/bindings/binding.h"
namespace ash {
@@ -30,10 +31,11 @@ class LocalActivityResolver;
class SetWallpaperDelegate;
// Receives intents from ARC.
-class ArcIntentHelperBridge : public ArcService,
- public ArcBridgeService::Observer,
- public mojom::IntentHelperHost,
- public ash::LinkHandlerModelFactory {
+class ArcIntentHelperBridge
+ : public ArcService,
+ public InstanceHolder<mojom::IntentHelperInstance>::Observer,
+ public mojom::IntentHelperHost,
+ public ash::LinkHandlerModelFactory {
public:
ArcIntentHelperBridge(
ArcBridgeService* bridge_service,
@@ -42,9 +44,9 @@ class ArcIntentHelperBridge : public ArcService,
const scoped_refptr<LocalActivityResolver>& activity_resolver);
~ArcIntentHelperBridge() override;
- // ArcBridgeService::Observer
- void OnIntentHelperInstanceReady() override;
- void OnIntentHelperInstanceClosed() override;
+ // InstanceHolder<mojom::IntentHelperInstance>::Observer
+ void OnInstanceReady() override;
+ void OnInstanceClosed() override;
// arc::mojom::IntentHelperHost
void OnIconInvalidated(const mojo::String& package_name) override;
« no previous file with comments | « components/arc/intent_helper/activity_icon_loader.cc ('k') | components/arc/intent_helper/arc_intent_helper_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698