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"; |
11 | 11 |
| 12 option optimize_for = LITE_RUNTIME; |
| 13 option retain_unknown_fields = true; |
| 14 |
12 package sync_pb; | 15 package sync_pb; |
13 | 16 |
14 import "encryption.proto"; | 17 import "encryption.proto"; |
15 | 18 |
16 // These are the properties that get serialized into the |encrypted| field of | 19 // These are the properties that get serialized into the |encrypted| field of |
17 // PasswordSpecifics. | 20 // PasswordSpecifics. |
18 message PasswordSpecificsData { | 21 message PasswordSpecificsData { |
19 optional int32 scheme = 1; | 22 optional int32 scheme = 1; |
20 optional string signon_realm = 2; | 23 optional string signon_realm = 2; |
21 optional string origin = 3; | 24 optional string origin = 3; |
22 optional string action = 4; | 25 optional string action = 4; |
23 optional string username_element = 5; | 26 optional string username_element = 5; |
24 optional string username_value = 6; | 27 optional string username_value = 6; |
25 optional string password_element = 7; | 28 optional string password_element = 7; |
26 optional string password_value = 8; | 29 optional string password_value = 8; |
27 optional bool ssl_valid = 9; | 30 optional bool ssl_valid = 9; |
28 optional bool preferred = 10; | 31 optional bool preferred = 10; |
29 optional int64 date_created = 11; | 32 optional int64 date_created = 11; |
30 optional bool blacklisted = 12; | 33 optional bool blacklisted = 12; |
31 } | 34 } |
32 | 35 |
33 // Properties of password sync objects. The actual password data is held in a | 36 // Properties of password sync objects. The actual password data is held in a |
34 // PasswordSpecificsData that is encrypted into |encrypted|. | 37 // PasswordSpecificsData that is encrypted into |encrypted|. |
35 message PasswordSpecifics { | 38 message PasswordSpecifics { |
36 optional EncryptedData encrypted = 1; | 39 optional EncryptedData encrypted = 1; |
37 } | 40 } |
38 | 41 |
OLD | NEW |