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

Unified Diff: components/arc/common/intent_helper.mojom

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: Add code accidentally removed. 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
« no previous file with comments | « components/arc/arc_service_manager.cc ('k') | components/arc/intent_helper/arc_intent_helper_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/common/intent_helper.mojom
diff --git a/components/arc/common/intent_helper.mojom b/components/arc/common/intent_helper.mojom
index c8d2944d2197e36ffc50200a825c69dd4cd3a469..b8fb48aedae8250210fc83f4e4aacf66ca110aa7 100644
--- a/components/arc/common/intent_helper.mojom
+++ b/components/arc/common/intent_helper.mojom
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
-// Next MinVersion: 9
+// Next MinVersion: 10
module arc.mojom;
@@ -15,6 +15,12 @@ enum ActionType {
SEND_MULTIPLE,
};
+struct IntentFilter {
+ array<string> actions;
+ array<string> categories;
+ array<string> data_schemes;
+};
+
// Describes a package that can handle a URL.
struct UrlHandlerInfo {
string name;
@@ -45,11 +51,15 @@ struct UrlWithMimeType {
};
// Handles intents from ARC in Chrome.
-// Next method ID: 5
+// Next method ID: 6
interface IntentHelperHost {
// Called when icons associated with the package are no longer up to date.
[MinVersion=3] OnIconInvalidated@1(string package_name);
+ // Called when intent filters are updated. Either on startup or when
+ // apps are installed or uninstalled.
+ [MinVersion=9] OnIntentFiltersUpdated@5(array<IntentFilter> intent_filters);
+
// Opens the downloads directory in the Chrome OS file manager.
[MinVersion=5] OnOpenDownloads@2();
« no previous file with comments | « components/arc/arc_service_manager.cc ('k') | components/arc/intent_helper/arc_intent_helper_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698