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 c8d2944d2197e36ffc50200a825c69dd4cd3a469..44e6c50e9fe4f8406bbe63fa6af6fe2d2065875d 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,29 @@ 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; |
| +}; |
|
dcheng
2016/06/24 22:32:35
Looks like lines 18-33 aren't used yet either.
zentaro
2016/06/27 16:15:37
Done.
|
| + |
| +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 +68,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(); |