password_specifics.proto revision c407dc5cd9bdc5668497f21b26b09d988ab439de
1// Copyright (c) 2010 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4//
5// Sync protocol datatype extension for password data.
6
7syntax = "proto2";
8
9// TODO(akalin): Re-enable this once LITE_RUNTIME supports preserving
10// unknown fields.
11
12// option optimize_for = LITE_RUNTIME;
13
14package sync_pb;
15
16import "encryption.proto";
17import "sync.proto";
18
19// These are the properties that get serialized into the |encrypted| field of
20// PasswordSpecifics.
21message PasswordSpecificsData {
22  optional int32 scheme = 1;
23  optional string signon_realm = 2;
24  optional string origin = 3;
25  optional string action = 4;
26  optional string username_element = 5;
27  optional string username_value = 6;
28  optional string password_element = 7;
29  optional string password_value = 8;
30  optional bool ssl_valid = 9;
31  optional bool preferred = 10;
32  optional int64 date_created = 11;
33  optional bool blacklisted = 12;
34}
35
36// Properties of password sync objects. The actual password data is held in a
37// PasswordSpecificsData that is encrypted into |encrypted|.
38message PasswordSpecifics {
39  optional EncryptedData encrypted = 1;
40}
41
42extend EntitySpecifics {
43  optional PasswordSpecifics password = 45873;
44}
45