OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
8 | 8 |
9 package enterprise_management; | 9 package enterprise_management; |
10 | 10 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
280 // string value should be a valid 32-character Chrome App identifier and | 280 // string value should be a valid 32-character Chrome App identifier and |
281 // specifies the Kiosk App to download and run. | 281 // specifies the Kiosk App to download and run. |
282 optional string app_id = 1; | 282 optional string app_id = 1; |
283 | 283 |
284 // Optional extension update URL to download the Kiosk App package from. If | 284 // Optional extension update URL to download the Kiosk App package from. If |
285 // not specified, the app will be downloaded from the standard Chrome Web | 285 // not specified, the app will be downloaded from the standard Chrome Web |
286 // Store update URL. | 286 // Store update URL. |
287 optional string update_url = 2; | 287 optional string update_url = 2; |
288 } | 288 } |
289 | 289 |
290 // Describes which Android application is to be launched. | |
291 message AndroidKioskAppInfoProto { | |
292 // Package name (must be present). | |
293 // In the event this is the only field that is specified, runtime may use | |
Nikita (slow)
2016/10/06 12:56:54
nit: In the event > in case (of just if)
| |
294 // PackageManager.getLaunchIntentForPackage() to start the app. See | |
295 // https://developer.android.com/reference/android/content/pm/PackageManager.h tml | |
296 optional string package_name = 1; | |
297 | |
298 // Class name (optional). If present, class name is to be combined with | |
299 // package name to form a ComponentName. See | |
300 // https://developer.android.com/reference/android/content/ComponentName.html | |
301 optional string class_name = 2; | |
302 | |
303 // Action (optional). The third parameter required for creating an Intent. | |
304 // If omitted, runtime may choose a reasonable default action | |
305 // (e.g. android.intent.action.MAIN). | |
306 // If package and action are specified, but not the class name, runtime may | |
307 // use PackageManager.queryIntentActivity() to find out the class name. | |
308 optional string action = 3; | |
309 } | |
310 | |
290 // Describes a single device-local account. | 311 // Describes a single device-local account. |
291 message DeviceLocalAccountInfoProto { | 312 message DeviceLocalAccountInfoProto { |
292 // Deprecated: Account identifier for a public session device-local account. | 313 // Deprecated: Account identifier for a public session device-local account. |
293 // Old code didn't have the |type| field, so it can't handle new types of | 314 // Old code didn't have the |type| field, so it can't handle new types of |
294 // device-local accounts gracefully (i.e. ignoring unsupported types). New | 315 // device-local accounts gracefully (i.e. ignoring unsupported types). New |
295 // code should instead set type to ACCOUNT_TYPE_PUBLIC_SESSION and write the | 316 // code should instead set type to ACCOUNT_TYPE_PUBLIC_SESSION and write the |
296 // identifier to the |account_id| field below. If the |type| field is present, | 317 // identifier to the |account_id| field below. If the |type| field is present, |
297 // |deprecated_public_session_id| will be ignored. | 318 // |deprecated_public_session_id| will be ignored. |
298 optional string deprecated_public_session_id = 1; | 319 optional string deprecated_public_session_id = 1; |
299 | 320 |
300 // Identifier for the device-local account. This is an opaque identifier that | 321 // Identifier for the device-local account. This is an opaque identifier that |
301 // is used to distinguish different device-local accounts configured. All | 322 // is used to distinguish different device-local accounts configured. All |
302 // configured accounts on a device must have unique identifiers. | 323 // configured accounts on a device must have unique identifiers. |
303 optional string account_id = 2; | 324 optional string account_id = 2; |
304 | 325 |
305 // Indicates the type of device-local account. | 326 // Indicates the type of device-local account. |
306 enum AccountType { | 327 enum AccountType { |
307 // A login-less, policy-configured browsing session. | 328 // A login-less, policy-configured browsing session. |
308 ACCOUNT_TYPE_PUBLIC_SESSION = 0; | 329 ACCOUNT_TYPE_PUBLIC_SESSION = 0; |
309 // An account that serves as a container for a single full-screen app. | 330 // An account that serves as a container for a single full-screen |
331 // Chrome app. | |
310 ACCOUNT_TYPE_KIOSK_APP = 1; | 332 ACCOUNT_TYPE_KIOSK_APP = 1; |
333 // An account that serves as a container for a single full-screen | |
334 // Android app. | |
335 ACCOUNT_TYPE_KIOSK_ANDROID_APP = 2; | |
311 }; | 336 }; |
312 | 337 |
313 // The account type. | 338 // The account type. |
314 optional AccountType type = 3; | 339 optional AccountType type = 3; |
315 | 340 |
316 // Kiosk App parameters, relevant if |type| is ACCOUNT_TYPE_KIOSK_APP. | 341 // Kiosk App parameters, relevant if |type| is ACCOUNT_TYPE_KIOSK_APP. |
317 optional KioskAppInfoProto kiosk_app = 4; | 342 optional KioskAppInfoProto kiosk_app = 4; |
343 | |
344 // Kiosk App parameters, relevant if |type| is ACCOUNT_TYPE_KIOSK_ANDROID_APP | |
345 optional AndroidKioskAppInfoProto android_kiosk_app = 5; | |
318 } | 346 } |
319 | 347 |
320 message DeviceLocalAccountsProto { | 348 message DeviceLocalAccountsProto { |
321 // The list of device-local accounts (i.e. accounts without an associated | 349 // The list of device-local accounts (i.e. accounts without an associated |
322 // cloud-backed profile) that are available on the device. | 350 // cloud-backed profile) that are available on the device. |
323 repeated DeviceLocalAccountInfoProto account = 1; | 351 repeated DeviceLocalAccountInfoProto account = 1; |
324 | 352 |
325 // The identifier of the device-local account to which the device | 353 // The identifier of the device-local account to which the device |
326 // should be logged in automatically. Should be equal to one of the | 354 // should be logged in automatically. Should be equal to one of the |
327 // ids in DeviceLocalAccountInfoProto. | 355 // ids in DeviceLocalAccountInfoProto. |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
765 optional AllowKioskAppControlChromeVersionProto | 793 optional AllowKioskAppControlChromeVersionProto |
766 allow_kiosk_app_control_chrome_version = 40; | 794 allow_kiosk_app_control_chrome_version = 40; |
767 optional LoginAuthenticationBehaviorProto login_authentication_behavior = 41; | 795 optional LoginAuthenticationBehaviorProto login_authentication_behavior = 41; |
768 optional UsbDetachableWhitelistProto usb_detachable_whitelist = 42; | 796 optional UsbDetachableWhitelistProto usb_detachable_whitelist = 42; |
769 optional AllowBluetoothProto allow_bluetooth = 43; | 797 optional AllowBluetoothProto allow_bluetooth = 43; |
770 optional DeviceQuirksDownloadEnabledProto quirks_download_enabled = 44; | 798 optional DeviceQuirksDownloadEnabledProto quirks_download_enabled = 44; |
771 optional LoginVideoCaptureAllowedUrlsProto login_video_capture_allowed_urls = | 799 optional LoginVideoCaptureAllowedUrlsProto login_video_capture_allowed_urls = |
772 45; | 800 45; |
773 optional LoginAppsProto login_apps = 46; | 801 optional LoginAppsProto login_apps = 46; |
774 } | 802 } |
OLD | NEW |