Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: chrome/browser/sync/protocol/password_specifics.proto

Issue 2828021: Take 2: sync changes to support encryption (Closed)
Patch Set: fix flaky password test under valgrind Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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 syntax = "proto2"; 7 syntax = "proto2";
8 8
9 option optimize_for = LITE_RUNTIME; 9 option optimize_for = LITE_RUNTIME;
10 10
11 package sync_pb; 11 package sync_pb;
12 12
13 import "encryption.proto";
13 import "sync.proto"; 14 import "sync.proto";
14 15
15 // These are the properties that get serialized into the |blob| field of 16 // These are the properties that get serialized into the |encrypted| field of
16 // |PasswordSpecifics|. 17 // PasswordSpecifics.
17 message PasswordSpecificsData { 18 message PasswordSpecificsData {
18 optional int32 scheme = 1; 19 optional int32 scheme = 1;
19 optional string signon_realm = 2; 20 optional string signon_realm = 2;
20 optional string origin = 3; 21 optional string origin = 3;
21 optional string action = 4; 22 optional string action = 4;
22 optional string username_element = 5; 23 optional string username_element = 5;
23 optional string username_value = 6; 24 optional string username_value = 6;
24 optional string password_element = 7; 25 optional string password_element = 7;
25 optional string password_value = 8; 26 optional string password_value = 8;
26 optional bool ssl_valid = 9; 27 optional bool ssl_valid = 9;
27 optional bool preferred = 10; 28 optional bool preferred = 10;
28 optional int64 date_created = 11; 29 optional int64 date_created = 11;
29 optional bool blacklisted = 12; 30 optional bool blacklisted = 12;
30 } 31 }
31 32
32 // Properties of password sync objects. 33 // Properties of password sync objects. The actual password data is held in a
34 // PasswordSpecificsData that is encrypted into |encrypted|.
33 message PasswordSpecifics { 35 message PasswordSpecifics {
34 optional string key = 1; 36 optional EncryptedData encrypted = 1;
35 optional string blob = 2;
36 } 37 }
37 38
38 extend EntitySpecifics { 39 extend EntitySpecifics {
39 optional PasswordSpecifics password = 45873; 40 optional PasswordSpecifics password = 45873;
40 } 41 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_password_unittest.cc ('k') | chrome/browser/sync/syncable/directory_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698