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

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

Issue 2163443002: Implement chrome-side intent filtering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: 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/BUILD.gn ('k') | components/arc/intent_helper/intent_filter.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 b8fb48aedae8250210fc83f4e4aacf66ca110aa7..4d7075b8f8d4c7534ae9a8082bbec941d14d954b 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: 10
+// Next MinVersion: 11
module arc.mojom;
@@ -15,10 +15,30 @@ enum ActionType {
SEND_MULTIPLE,
};
+[Extensible]
+enum PatternType {
+ PATTERN_LITERAL,
+ PATTERN_PREFIX,
+ PATTERN_SIMPLE_GLOB,
+};
+
+struct PatternMatcher {
+ string pattern;
+ PatternType type;
+};
+
+struct AuthorityEntry {
+ string host;
+ int32 port;
+};
+
struct IntentFilter {
array<string> actions;
array<string> categories;
array<string> data_schemes;
+ [MinVersion=10]array<AuthorityEntry>? data_authorities;
+ [MinVersion=10]array<PatternMatcher>? data_paths;
+ [MinVersion=10]array<PatternMatcher>? data_scheme_specific_parts;
};
// Describes a package that can handle a URL.
« no previous file with comments | « components/arc/BUILD.gn ('k') | components/arc/intent_helper/intent_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698