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 experimental feature flags. | 5 // Sync protocol datatype extension for experimental feature flags. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 option retain_unknown_fields = true; | 10 option retain_unknown_fields = true; |
11 | 11 |
12 package sync_pb; | 12 package sync_pb; |
13 | 13 |
14 // A flag to enable support for keystore encryption. | 14 // A flag to enable support for keystore encryption. |
15 message KeystoreEncryptionFlags { | 15 message KeystoreEncryptionFlags { |
16 optional bool enabled = 1; | 16 optional bool enabled = 1; |
17 } | 17 } |
18 | 18 |
19 // Whether history delete directives are enabled. | 19 // Whether history delete directives are enabled. |
20 message HistoryDeleteDirectives { | 20 message HistoryDeleteDirectives { |
21 optional bool enabled = 1; | 21 optional bool enabled = 1; |
22 } | 22 } |
23 | 23 |
24 // Whether this client should cull (delete) expired autofill | 24 // Whether this client should cull (delete) expired autofill |
25 // entries when autofill sync is enabled. | 25 // entries when autofill sync is enabled. |
26 message AutofillCullingFlags { | 26 message AutofillCullingFlags { |
27 optional bool enabled = 1; | 27 optional bool enabled = 1; |
28 } | 28 } |
29 | 29 |
30 // Whether the favicon sync datatypes are enabled. | 30 // Whether the favicon sync datatypes are enabled, and what parameters |
| 31 // they should operate under. |
31 message FaviconSyncFlags { | 32 message FaviconSyncFlags { |
32 optional bool enabled = 1; | 33 optional bool enabled = 1; |
| 34 optional int32 favicon_sync_limit = 2 [default = 200]; |
33 } | 35 } |
34 | 36 |
35 // Contains one flag or set of related flags. Each node of the experiments type | 37 // Contains one flag or set of related flags. Each node of the experiments type |
36 // will have a unique_client_tag identifying which flags it contains. By | 38 // will have a unique_client_tag identifying which flags it contains. By |
37 // convention, the tag name should match the sub-message name. | 39 // convention, the tag name should match the sub-message name. |
38 message ExperimentsSpecifics { | 40 message ExperimentsSpecifics { |
39 optional KeystoreEncryptionFlags keystore_encryption = 1; | 41 optional KeystoreEncryptionFlags keystore_encryption = 1; |
40 optional HistoryDeleteDirectives history_delete_directives = 2; | 42 optional HistoryDeleteDirectives history_delete_directives = 2; |
41 optional AutofillCullingFlags autofill_culling = 3; | 43 optional AutofillCullingFlags autofill_culling = 3; |
42 optional FaviconSyncFlags favicon_sync = 4; | 44 optional FaviconSyncFlags favicon_sync = 4; |
43 } | 45 } |
OLD | NEW |