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

Side by Side Diff: chrome/common/extensions/api/_features.md

Issue 2255613003: Introduce session type parameter to extension features (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce session type parameter to extension features Created 4 years, 3 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 | « no previous file | chrome/common/extensions/api/common_extension_api_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Extension Features Files 1 # Extension Features Files
2 2
3 [TOC] 3 [TOC]
4 4
5 ## Summary 5 ## Summary
6 6
7 The Extension features files specify the different requirements for extension 7 The Extension features files specify the different requirements for extension
8 feature availability. 8 feature availability.
9 9
10 An **extension feature** can be any component of extension capabilities. Most 10 An **extension feature** can be any component of extension capabilities. Most
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 The only accepted value is the bool `true`. 246 The only accepted value is the bool `true`.
247 247
248 ### platforms 248 ### platforms
249 249
250 The `platforms` property specifies the properties the feature should be 250 The `platforms` property specifies the properties the feature should be
251 available on. 251 available on.
252 252
253 The accepted values are lists of strings from `chromeos`, `mac`, `linux`, and 253 The accepted values are lists of strings from `chromeos`, `mac`, `linux`, and
254 `win`. 254 `win`.
255 255
256 ### session\_types
257
258 The `session_types` property specifies in which types of sessions a feature
259 should be available. The session type describes the type of user that is
260 logged in the current session. Session types to which feature can be restricted
261 are only supported on Chrome OS - feature restricted to set of session types
Devlin 2016/09/13 17:37:45 nit: s/features/feature
tbarzic 2016/09/13 17:55:12 Done.
262 will be disabled on other platforms. Also, note that all currently supported
263 session types imply that a user is logged into the session.
Devlin 2016/09/13 17:37:45 Mention what the value is when the user is *not* l
tbarzic 2016/09/13 17:55:12 That one is not currently supported (as there is n
Devlin 2016/09/13 18:13:50 I understand we don't offer it as a value, but it'
tbarzic 2016/09/13 18:25:40 Done.
264
265 The accepted values are lists of strings from `regular` and `kiosk`.
266
256 ### whitelist 267 ### whitelist
257 268
258 The `whitelist` property specifies a list of ID hashes for extensions that 269 The `whitelist` property specifies a list of ID hashes for extensions that
259 are the only extensions allowed to access a feature. 270 are the only extensions allowed to access a feature.
260 271
261 Accepted values are lists of id hashes. 272 Accepted values are lists of id hashes.
262 273
263 ## ID Hashes 274 ## ID Hashes
264 275
265 Instead of listing the ID directly in the whitelist or blacklist section, we 276 Instead of listing the ID directly in the whitelist or blacklist section, we
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 at runtime, this has the added benefit of allowing us to validate at compile 381 at runtime, this has the added benefit of allowing us to validate at compile
371 time rather than needing a unittest (or allowing incorrect features). 382 time rather than needing a unittest (or allowing incorrect features).
372 383
373 In theory, invalid features should result in a compilation failure; in practice, 384 In theory, invalid features should result in a compilation failure; in practice,
374 the compiler is probably missing some cases. 385 the compiler is probably missing some cases.
375 386
376 ## Still to come 387 ## Still to come
377 388
378 TODO(devlin): Add documentation for extension types. Probably also more on 389 TODO(devlin): Add documentation for extension types. Probably also more on
379 requirements for individual features. 390 requirements for individual features.
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/api/common_extension_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698