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

Side by Side Diff: sync/protocol/nigori_specifics.proto

Issue 10911073: NOT FOR COMMIT: Add DeviceInfo type and ChangeProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Introduce SyncedDeviceTracker (the ChangeProcessor) Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
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 nigori keys. 5 // Sync protocol datatype extension for nigori keys.
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; 12 option optimize_for = LITE_RUNTIME;
13 option retain_unknown_fields = true; 13 option retain_unknown_fields = true;
14 14
15 package sync_pb; 15 package sync_pb;
16 16
17 import "encryption.proto"; 17 import "encryption.proto";
18 18
19 message NigoriKey { 19 message NigoriKey {
20 optional string name = 1; 20 optional string name = 1;
21 optional bytes user_key = 2; 21 optional bytes user_key = 2;
22 optional bytes encryption_key = 3; 22 optional bytes encryption_key = 3;
23 optional bytes mac_key = 4; 23 optional bytes mac_key = 4;
24 } 24 }
25 25
26 message NigoriKeyBag { 26 message NigoriKeyBag {
27 repeated NigoriKey key = 2; 27 repeated NigoriKey key = 2;
28 } 28 }
29 29
30 // Information about a device that is running a sync-enabled Chrome browser.
31 // We are mapping the unique per-device cache guid to more specific information
32 // about the device.
33 message DeviceInformation {
34 optional string cache_guid = 1;
35
36 // The name of the device is dependent on the OS running the Chrome instance.
37 // On a Chromebook this is "Chromebook", on Linux the distribution name, on
38 // Mac OSX the hadware model name and on Windows the computer name.
39 optional string name = 2;
40
41 // The platform of the device (ChromeOS, Linux, Mac, or Windows).
42 optional string platform = 3;
43
44 // The Chrome version of the sync-enabled Chrome browser.
45 optional string chrome_version = 4;
46 }
47
48 // Properties of nigori sync object. 30 // Properties of nigori sync object.
49 message NigoriSpecifics { 31 message NigoriSpecifics {
50 optional EncryptedData encrypted = 1; 32 optional EncryptedData encrypted = 1;
51 // True if |encrypted| is encrypted using a passphrase 33 // True if |encrypted| is encrypted using a passphrase
52 // explicitly set by the user. 34 // explicitly set by the user.
53 optional bool using_explicit_passphrase = 2; 35 optional bool using_explicit_passphrase = 2;
54 36
55 // Obsolete encryption fields. These were deprecated due to legacy versions 37 // Obsolete encryption fields. These were deprecated due to legacy versions
56 // that understand their usage but did not perform encryption properly. 38 // that understand their usage but did not perform encryption properly.
57 // optional bool deprecated_encrypt_bookmarks = 3; 39 // optional bool deprecated_encrypt_bookmarks = 3;
(...skipping 25 matching lines...) Expand all
83 65
84 // If true, all current and future datatypes will be encrypted. 66 // If true, all current and future datatypes will be encrypted.
85 optional bool encrypt_everything = 24; 67 optional bool encrypt_everything = 24;
86 68
87 optional bool encrypt_extension_settings = 25; 69 optional bool encrypt_extension_settings = 25;
88 optional bool encrypt_app_notifications = 26; 70 optional bool encrypt_app_notifications = 26;
89 optional bool encrypt_app_settings = 27; 71 optional bool encrypt_app_settings = 27;
90 72
91 // User device information. Contains information about each device that has a 73 // User device information. Contains information about each device that has a
92 // sync-enabled Chrome browser connected to the user account. 74 // sync-enabled Chrome browser connected to the user account.
93 repeated DeviceInformation device_information = 28; 75 // This has been moved to the PerDeviceSpecific message.
Nicolas Zea 2012/09/13 00:45:55 PerDeviceSpecifics -> DeviceInfoSpecifics?
rlarocque 2012/09/14 01:03:07 Done.
76 // repeated DeviceInformation device_information = 28;
Raz Mathias 2012/09/13 16:07:01 Please mark this field // @deprecated
rlarocque 2012/09/14 01:03:07 Is that a java annotation? What will that do?
94 77
95 // Enable syncing favicons as part of tab sync. 78 // Enable syncing favicons as part of tab sync.
96 optional bool sync_tab_favicons = 29; 79 optional bool sync_tab_favicons = 29;
97 } 80 }
98 81
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698