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 // Sync protocol datatype extension for password data. | 5 // Sync protocol datatype extension for password data. |
| 6 | 6 |
| 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change |
| 8 // any fields in this file. | 8 // any fields in this file. |
| 9 | 9 |
| 10 syntax = "proto2"; | 10 syntax = "proto2"; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 | 103 |
| 104 // A URL of the avatar for the credential. Set by CredentialManager API and | 104 // A URL of the avatar for the credential. Set by CredentialManager API and |
| 105 // Android. | 105 // Android. |
| 106 optional string avatar_url = 16; | 106 optional string avatar_url = 16; |
| 107 | 107 |
| 108 // A URL of the IdP used to verify the credential. Set by Credential Manager | 108 // A URL of the IdP used to verify the credential. Set by Credential Manager |
| 109 // API and Android. | 109 // API and Android. |
| 110 optional string federation_url = 17; | 110 optional string federation_url = 17; |
| 111 } | 111 } |
| 112 | 112 |
| 113 // Contains the password specifics metadata which simplifies its lookup. | |
| 114 message PasswordSpecificsMetadata { | |
| 115 optional string url = 1; | |
| 116 }; | |
| 117 | |
| 113 // Properties of password sync objects. | 118 // Properties of password sync objects. |
| 114 message PasswordSpecifics { | 119 message PasswordSpecifics { |
| 115 // The actual password data. Contains an encrypted PasswordSpecificsData | 120 // The actual password data. Contains an encrypted PasswordSpecificsData |
| 116 // message. | 121 // message. |
| 117 optional EncryptedData encrypted = 1; | 122 optional EncryptedData encrypted = 1; |
| 118 // An unsynced field for use internally on the client. This field should | 123 // An unsynced field for use internally on the client. This field should |
| 119 // never be set in any network-based communications. | 124 // never be set in any network-based communications. |
| 120 optional PasswordSpecificsData client_only_encrypted_data = 2; | 125 optional PasswordSpecificsData client_only_encrypted_data = 2; |
| 126 // Password related metadata, which is sent to the server side. The field | |
| 127 // should never be set for full encryption and data is the explicitly cleared | |
|
Nicolas Zea
2016/08/20 00:23:43
nit: the last sentence is a bit tough to parse. Ho
| |
| 128 // out and no longer sent to the server. | |
| 129 optional PasswordSpecificsMetadata unencrypted_metadata = 3; | |
|
Nicolas Zea
2016/08/20 00:23:43
Note that this also needs to be added to proto_val
| |
| 121 } | 130 } |
| OLD | NEW |