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

Unified Diff: components/arc/intent_helper/arc_intent_helper_bridge.h

Issue 2078683002: Add handler and mojo interface to accept android intent filters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Store intent filers in LocalActivityResolver. Created 4 years, 6 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 a74acf0df9b7608fb1fcea455dd6647b0e5edfee..9efcefecb506e6175615f5535e87a20dc5317093 100644
--- a/components/arc/intent_helper/arc_intent_helper_bridge.h
+++ b/components/arc/intent_helper/arc_intent_helper_bridge.h
@@ -25,6 +25,7 @@ class LinkHandlerModel;
namespace arc {
class ActivityIconLoader;
+class LocalActivityResolver;
// Receives intents from ARC.
class ArcIntentHelperBridge : public ArcService,
@@ -32,8 +33,10 @@ class ArcIntentHelperBridge : public ArcService,
public mojom::IntentHelperHost,
public ash::LinkHandlerModelFactory {
public:
- ArcIntentHelperBridge(ArcBridgeService* bridge_service,
- const scoped_refptr<ActivityIconLoader>& icon_loader);
+ ArcIntentHelperBridge(
+ ArcBridgeService* bridge_service,
+ const scoped_refptr<ActivityIconLoader>& icon_loader,
+ const scoped_refptr<LocalActivityResolver>& activity_resolver);
~ArcIntentHelperBridge() override;
// ArcBridgeService::Observer
@@ -42,6 +45,8 @@ class ArcIntentHelperBridge : public ArcService,
// arc::mojom::IntentHelperHost
void OnIconInvalidated(const mojo::String& package_name) override;
+ void OnIntentFiltersUpdated(
+ mojo::Array<mojom::IntentFilterPtr> intent_filters) override;
void OnOpenDownloads() override;
void OnOpenUrl(const mojo::String& url) override;
void OpenWallpaperPicker() override;
@@ -60,6 +65,7 @@ class ArcIntentHelperBridge : public ArcService,
private:
mojo::Binding<mojom::IntentHelperHost> binding_;
scoped_refptr<ActivityIconLoader> icon_loader_;
+ scoped_refptr<LocalActivityResolver> activity_resolver_;
DISALLOW_COPY_AND_ASSIGN(ArcIntentHelperBridge);
};

Powered by Google App Engine
This is Rietveld 408576698