| 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 #ifndef SYNC_UTIL_EXPERIMENTS_ | 5 #ifndef SYNC_UTIL_EXPERIMENTS_ |
| 6 #define SYNC_UTIL_EXPERIMENTS_ | 6 #define SYNC_UTIL_EXPERIMENTS_ |
| 7 | 7 |
| 8 #include "sync/internal_api/public/base/model_type.h" | 8 #include "sync/internal_api/public/base/model_type.h" |
| 9 | 9 |
| 10 namespace syncer { | 10 namespace syncer { |
| 11 | 11 |
| 12 const char kAutofillCullingTag[] = "autofill_culling"; | 12 const char kAutofillCullingTag[] = "autofill_culling"; |
| 13 const char kFaviconSyncTag[] = "favicon_sync"; | 13 const char kFaviconSyncTag[] = "favicon_sync"; |
| 14 const char kPreCommitUpdateAvoidanceTag[] = "pre_commit_update_avoidance"; |
| 14 | 15 |
| 15 // A structure to hold the enable status of experimental sync features. | 16 // A structure to hold the enable status of experimental sync features. |
| 16 struct Experiments { | 17 struct Experiments { |
| 17 Experiments() : autofill_culling(false), | 18 Experiments() : autofill_culling(false), |
| 18 favicon_sync_limit(200) {} | 19 favicon_sync_limit(200) {} |
| 19 | 20 |
| 20 bool Matches(const Experiments& rhs) { | 21 bool Matches(const Experiments& rhs) { |
| 21 return (autofill_culling == rhs.autofill_culling && | 22 return (autofill_culling == rhs.autofill_culling && |
| 22 favicon_sync_limit == rhs.favicon_sync_limit); | 23 favicon_sync_limit == rhs.favicon_sync_limit); |
| 23 } | 24 } |
| 24 | 25 |
| 25 // Enable deletion of expired autofill entries (if autofill sync is enabled). | 26 // Enable deletion of expired autofill entries (if autofill sync is enabled). |
| 26 bool autofill_culling; | 27 bool autofill_culling; |
| 27 | 28 |
| 28 // The number of favicons that a client is permitted to sync. | 29 // The number of favicons that a client is permitted to sync. |
| 29 int favicon_sync_limit; | 30 int favicon_sync_limit; |
| 30 }; | 31 }; |
| 31 | 32 |
| 32 } // namespace syncer | 33 } // namespace syncer |
| 33 | 34 |
| 34 #endif // SYNC_UTIL_EXPERIMENTS_ | 35 #endif // SYNC_UTIL_EXPERIMENTS_ |
| OLD | NEW |