| 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..e7bd51eff9ff72bc81708636065327d78bd3f2e9 100644
|
| --- a/components/arc/common/intent_helper.mojom
|
| +++ b/components/arc/common/intent_helper.mojom
|
| @@ -2,18 +2,45 @@
|
| // 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";
|
|
|
| // Describes the type of action to invoke.
|
| +[Extensible]
|
| enum ActionType {
|
| VIEW,
|
| SEND,
|
| 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;
|
| + 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 +71,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();
|
|
|
|
|