Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 219 // fallback timezone (currently "GMT"). In case of an empty string or if no | 219 // fallback timezone (currently "GMT"). In case of an empty string or if no |
| 220 // value is provided, the timezone device setting is inactive. In that case, | 220 // value is provided, the timezone device setting is inactive. In that case, |
| 221 // the currently active timezone will remain in use however users can change | 221 // the currently active timezone will remain in use however users can change |
| 222 // the timezone and the change is persistent. Thus a change by one user | 222 // the timezone and the change is persistent. Thus a change by one user |
| 223 // affects the login-screen and all other users. | 223 // affects the login-screen and all other users. |
| 224 optional string timezone = 1; | 224 optional string timezone = 1; |
| 225 } | 225 } |
| 226 | 226 |
| 227 // Describes a single device-local account. | 227 // Describes a single device-local account. |
| 228 message DeviceLocalAccountInfoProto { | 228 message DeviceLocalAccountInfoProto { |
| 229 // Identifier for the device-local account. Account identifiers loosely follow | 229 // Deprecated: Account identifier for a public session device-local account. |
| 230 // the conventions for email addresses as specified by RFC 5322, e.g. local | 230 // Old code didn't have the |type| field, so it can't handle new types of |
| 231 // (user name) and domain parts, separated by the '@' character. | 231 // device-local accounts gracefully (i.e. ignoring unsupported types). New |
| 232 // Policy-configured device-local accounts are on the same domain that the | 232 // code should instead set type to ACCOUNT_TYPE_PUBLIC_SESSION and write the |
| 233 // device is enrolled to. In contrast to RFC 5322 (which is more restrictive), | 233 // identifier to the |account_id| field below. If the |type| field is present, |
| 234 // the local part may contain any characters other than '@'. | 234 // |deprecated_public_session_id| will be ignored. |
| 235 optional string id = 1; | 235 optional string deprecated_public_session_id = 1; |
|
binzhao
2013/04/30 22:01:10
My understanding is that the old client has no kno
Mattias Nissler (ping if slow)
2013/04/30 23:37:37
The issue is forward-compatibility: IMHO, old clie
binzhao
2013/05/01 00:30:44
OK, I agree when admin configures KIOSK, then pre-
Mattias Nissler (ping if slow)
2013/05/01 10:10:55
Yes that'd be helpful. It's probably not strictly
binzhao
2013/05/01 16:56:49
Is there a good way to tell most of the devices ha
| |
| 236 | |
| 237 // Identifier for the device-local account. This is an opaque identifier that | |
| 238 // is used to distinguish different device-local accounts configured. All | |
| 239 // configured accounts on a device must have unique identifiers. | |
| 240 optional string account_id = 2; | |
| 241 | |
| 242 // Indicates the type of device-local account. | |
| 243 enum AccountType { | |
| 244 // A login-less, policy-configured browsing session. | |
| 245 ACCOUNT_TYPE_PUBLIC_SESSION = 0; | |
| 246 // An account that serves as a container for a single full-screen app. | |
| 247 ACCOUNT_TYPE_KIOSK_APP = 1; | |
| 248 }; | |
| 249 | |
| 250 // The account type. | |
| 251 optional AccountType type = 3; | |
|
binzhao
2013/04/30 22:01:10
we can specify the default to be ACCOUNT_TYPE_PUBL
Mattias Nissler (ping if slow)
2013/04/30 23:37:37
See my comment above.
binzhao
2013/05/01 00:30:44
Is Chromium using proto1 or proto2?
I am not very
Mattias Nissler (ping if slow)
2013/05/01 10:10:55
If read the code and tested it against a proto con
binzhao
2013/05/01 16:56:49
Right, if you check hasXXX(), then it is fine. If
| |
| 252 | |
| 253 // For ACCOUNT_TYPE_KIOSK_APP, indicates the app that should be run. The | |
| 254 // string value should be a valid 32-character Chrome App identifier and | |
| 255 // specifies the Kiosk App to download and run. | |
| 256 optional string kiosk_app_id = 4; | |
|
binzhao
2013/05/01 00:30:44
Do we want to define a wrapper message type - Kios
Mattias Nissler (ping if slow)
2013/05/01 10:10:55
Fair, I'll do that.
| |
| 257 | |
| 258 // Optional extension update URL to download the Kiosk App package from. If | |
| 259 // not specified, the app will be downloaded from the standard Chrome Web | |
| 260 // Store update URL. | |
| 261 optional string kiosk_app_update_url = 5; | |
| 236 } | 262 } |
| 237 | 263 |
| 238 message DeviceLocalAccountsProto { | 264 message DeviceLocalAccountsProto { |
| 239 // The list of device-local accounts (i.e. accounts without an associated | 265 // The list of device-local accounts (i.e. accounts without an associated |
| 240 // cloud-backed profile) that are available on the device. | 266 // cloud-backed profile) that are available on the device. |
| 241 repeated DeviceLocalAccountInfoProto account = 1; | 267 repeated DeviceLocalAccountInfoProto account = 1; |
| 242 | 268 |
| 243 // The identifier of the device-local account to which the device | 269 // The identifier of the device-local account to which the device |
| 244 // should be logged in automatically. Should be equal to one of the | 270 // should be logged in automatically. Should be equal to one of the |
| 245 // ids in DeviceLocalAccountInfoProto. | 271 // ids in DeviceLocalAccountInfoProto. |
| 246 optional string auto_login_id = 2; | 272 optional string auto_login_id = 2; |
| 247 | 273 |
| 248 // The amount of time, in milliseconds, that should elapse at the signin | 274 // The amount of time, in milliseconds, that should elapse at the signin |
| 249 // screen without user interaction before automatically logging in. | 275 // screen without user interaction before automatically logging in. |
| 250 optional int64 auto_login_delay = 3; | 276 optional int64 auto_login_delay = 3; |
| 277 | |
| 278 // Whether the keyboard shortcut to prevent zero-delay auto-login should be | |
| 279 // enabled or not. If this keyboard shortcut is engaged, the auto-login will | |
| 280 // be delayed by 3 minutes so administrators can log in or make configuration | |
| 281 // changes. | |
| 282 optional bool enable_auto_login_bailout = 4 [default = true]; | |
| 251 } | 283 } |
| 252 | 284 |
| 253 message AllowRedeemChromeOsRegistrationOffersProto { | 285 message AllowRedeemChromeOsRegistrationOffersProto { |
| 254 // Chrome OS Registration service provides way for chromeos device users | 286 // Chrome OS Registration service provides way for chromeos device users |
| 255 // to redeem electronic offers provided by service provider. | 287 // to redeem electronic offers provided by service provider. |
| 256 // This value determines if users are allowed to redeem offers through | 288 // This value determines if users are allowed to redeem offers through |
| 257 // Chrome OS Registration service. | 289 // Chrome OS Registration service. |
| 258 optional bool allow_redeem_offers = 1 [default = true]; | 290 optional bool allow_redeem_offers = 1 [default = true]; |
| 259 } | 291 } |
| 260 | 292 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 311 optional StartUpUrlsProto start_up_urls = 18; | 343 optional StartUpUrlsProto start_up_urls = 18; |
| 312 optional PinnedAppsProto pinned_apps = 19; | 344 optional PinnedAppsProto pinned_apps = 19; |
| 313 optional SystemTimezoneProto system_timezone = 20; | 345 optional SystemTimezoneProto system_timezone = 20; |
| 314 optional DeviceLocalAccountsProto device_local_accounts = 21; | 346 optional DeviceLocalAccountsProto device_local_accounts = 21; |
| 315 optional AllowRedeemChromeOsRegistrationOffersProto allow_redeem_offers = 22; | 347 optional AllowRedeemChromeOsRegistrationOffersProto allow_redeem_offers = 22; |
| 316 optional StartUpFlagsProto start_up_flags = 23; | 348 optional StartUpFlagsProto start_up_flags = 23; |
| 317 optional UptimeLimitProto uptime_limit = 24; | 349 optional UptimeLimitProto uptime_limit = 24; |
| 318 optional VariationsParameterProto variations_parameter = 25; | 350 optional VariationsParameterProto variations_parameter = 25; |
| 319 optional AttestationSettingsProto attestation_settings = 26; | 351 optional AttestationSettingsProto attestation_settings = 26; |
| 320 } | 352 } |
| OLD | NEW |