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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Next MinVersion: 10 5 // Next MinVersion: 11
6 6
7 module arc.mojom; 7 module arc.mojom;
8 8
9 import "scale_factor.mojom"; 9 import "scale_factor.mojom";
10 10
11 // Describes the type of action to invoke. 11 // Describes the type of action to invoke.
12 enum ActionType { 12 enum ActionType {
13 VIEW, 13 VIEW,
14 SEND, 14 SEND,
15 SEND_MULTIPLE, 15 SEND_MULTIPLE,
16 }; 16 };
17 17
18 [Extensible]
19 enum PatternType {
20 PATTERN_LITERAL,
21 PATTERN_PREFIX,
22 PATTERN_SIMPLE_GLOB,
23 };
24
25 struct PatternMatcher {
26 string pattern;
27 PatternType type;
28 };
29
30 struct AuthorityEntry {
31 string host;
32 int32 port;
33 };
34
18 struct IntentFilter { 35 struct IntentFilter {
19 array<string> actions; 36 array<string> actions;
20 array<string> categories; 37 array<string> categories;
21 array<string> data_schemes; 38 array<string> data_schemes;
39 [MinVersion=10]array<AuthorityEntry>? data_authorities;
40 [MinVersion=10]array<PatternMatcher>? data_paths;
41 [MinVersion=10]array<PatternMatcher>? data_scheme_specific_parts;
22 }; 42 };
23 43
24 // Describes a package that can handle a URL. 44 // Describes a package that can handle a URL.
25 struct UrlHandlerInfo { 45 struct UrlHandlerInfo {
26 string name; 46 string name;
27 string package_name; 47 string package_name;
28 string activity_name; // A hint for retrieving the package's icon. 48 string activity_name; // A hint for retrieving the package's icon.
29 [MinVersion=4] ActionType action; 49 [MinVersion=4] ActionType action;
30 [MinVersion=6] bool is_preferred; 50 [MinVersion=6] bool is_preferred;
31 }; 51 };
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // specified. Data can be sent as extras by including a JSON map string which 139 // specified. Data can be sent as extras by including a JSON map string which
120 // will be automatically converted to a bundle accessible by the receiver. 140 // will be automatically converted to a bundle accessible by the receiver.
121 // 141 //
122 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be 142 // Note: Broadcasts can only be sent to whitelisted packages. Packages can be
123 // added to the whitelist in ArcBridgeService.java in the Android source. 143 // added to the whitelist in ArcBridgeService.java in the Android source.
124 [MinVersion=1] SendBroadcast@1(string action, 144 [MinVersion=1] SendBroadcast@1(string action,
125 string package_name, 145 string package_name,
126 string cls, 146 string cls,
127 string extras); 147 string extras);
128 }; 148 };
OLDNEW
« 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