Chromium Code Reviews| Index: components/arc/common/intent_helper.mojom |
| diff --git a/components/arc/common/intent_helper.mojom b/components/arc/common/intent_helper.mojom |
| index 0e190c829dac07a3d96027f937a3d0600418ad57..8368d2e7a8edfa458dcde93fdf4e4ef6b7749e33 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: 8 |
| +// Next MinVersion: 9 |
| module arc.mojom; |
| import "scale_factor.mojom"; |
| @@ -14,6 +14,31 @@ enum ActionType { |
| SEND_MULTIPLE, |
| }; |
| +enum PatternType { |
|
Luis Héctor Chávez
2016/06/16 22:45:20
Is this expected to be fixed forever? Otherwise, a
zentaro
2016/06/17 21:42:25
Done.
|
| + 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; |
| + array<AuthorityEntry> data_authorities; |
| + array<PatternMatcher> data_paths; |
| + array<PatternMatcher> data_scheme_specific_parts; |
| +}; |
| + |
| // Describes a package that can handle a URL. |
| struct UrlHandlerInfo { |
| string name; |
| @@ -44,11 +69,15 @@ struct UrlWithMimeType { |
| }; |
| // Handles intents from ARC in Chrome. |
| -// Next method ID: 4 |
| +// Next method ID: 5 |
| 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=8] OnIntentFiltersUpdated@4(array<IntentFilter> intent_filters); |
| + |
| // Opens the downloads directory in the Chrome OS file manager. |
| [MinVersion=5] OnOpenDownloads@2(); |