| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Definitions for CryptAuth API calls. Do not edit unless transcribing | 5 // Definitions for CryptAuth API calls. Do not edit unless transcribing |
| 6 // from server definitions. | 6 // from server definitions. |
| 7 syntax = "proto2"; | 7 syntax = "proto2"; |
| 8 | 8 |
| 9 package cryptauth; | 9 package cryptauth; |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // Software package information if applicable | 23 // Software package information if applicable |
| 24 // (e.g., com.google.android.apps.authenticator2). | 24 // (e.g., com.google.android.apps.authenticator2). |
| 25 optional string device_software_package = 19; | 25 optional string device_software_package = 19; |
| 26 | 26 |
| 27 // Device type/platform. | 27 // Device type/platform. |
| 28 optional DeviceType device_type = 32 [default = UNKNOWN]; | 28 optional DeviceType device_type = 32 [default = UNKNOWN]; |
| 29 } | 29 } |
| 30 | 30 |
| 31 enum DeviceType { | 31 enum DeviceType { |
| 32 UNKNOWN = 0; | 32 UNKNOWN = 0; |
| 33 ANDROID = 1; | 33 ANDROIDOS = 1; |
| 34 CHROME = 2; | 34 CHROME = 2; |
| 35 IOS = 3; | 35 IOS = 3; |
| 36 BROWSER = 4; | 36 BROWSER = 4; |
| 37 } | 37 } |
| 38 | 38 |
| 39 // Device information provided to external clients that need to sync device | 39 // Device information provided to external clients that need to sync device |
| 40 // state. | 40 // state. |
| 41 message ExternalDeviceInfo { | 41 message ExternalDeviceInfo { |
| 42 // A cryptographic public key associated with the device. | 42 // A cryptographic public key associated with the device. |
| 43 optional bytes public_key = 1; | 43 optional bytes public_key = 1; |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 optional int32 device_authzen_version = 24; | 221 optional int32 device_authzen_version = 24; |
| 222 | 222 |
| 223 // Not all devices have device identifiers that fit in 64 bits. | 223 // Not all devices have device identifiers that fit in 64 bits. |
| 224 optional bytes long_device_id = 29; | 224 optional bytes long_device_id = 29; |
| 225 | 225 |
| 226 // The device manufacturer name | 226 // The device manufacturer name |
| 227 // (e.g., android.os.Build.MANUFACTURER). | 227 // (e.g., android.os.Build.MANUFACTURER). |
| 228 optional string device_manufacturer = 31; | 228 optional string device_manufacturer = 31; |
| 229 | 229 |
| 230 // Used to indicate which type of device this is. | 230 // Used to indicate which type of device this is. |
| 231 optional DeviceType device_type = 32 [default = ANDROID]; | 231 optional DeviceType device_type = 32 [default = ANDROIDOS]; |
| 232 | 232 |
| 233 // Fields corresponding to screenlock type/features and hardware features | 233 // Fields corresponding to screenlock type/features and hardware features |
| 234 // should be numbered in the 400 range. | 234 // should be numbered in the 400 range. |
| 235 | 235 |
| 236 // Is this device using a secure screenlock (e.g., pattern or pin unlock). | 236 // Is this device using a secure screenlock (e.g., pattern or pin unlock). |
| 237 optional bool using_secure_screenlock = 400 [default = false]; | 237 optional bool using_secure_screenlock = 400 [default = false]; |
| 238 | 238 |
| 239 // Is auto-unlocking the screenlock (e.g., when at "home") supported? | 239 // Is auto-unlocking the screenlock (e.g., when at "home") supported? |
| 240 optional bool auto_unlock_screenlock_supported = 401 [default = false]; | 240 optional bool auto_unlock_screenlock_supported = 401 [default = false]; |
| 241 | 241 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 // only disable EasyUnlock for all devices. | 476 // only disable EasyUnlock for all devices. |
| 477 optional bool apply_to_all = 3; | 477 optional bool apply_to_all = 3; |
| 478 | 478 |
| 479 // Information about the requesting device and its platform. | 479 // Information about the requesting device and its platform. |
| 480 optional DeviceClassifier device_classifier = 4; | 480 optional DeviceClassifier device_classifier = 4; |
| 481 } | 481 } |
| 482 | 482 |
| 483 message ToggleEasyUnlockResponse { | 483 message ToggleEasyUnlockResponse { |
| 484 // empty for now. | 484 // empty for now. |
| 485 } | 485 } |
| OLD | NEW |