| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ | 5 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ |
| 6 #define COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ | 6 #define COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // A key into the Associate/Get methods for VariationIDs. This is used to create | 57 // A key into the Associate/Get methods for VariationIDs. This is used to create |
| 58 // separate ID associations for separate parties interested in VariationIDs. | 58 // separate ID associations for separate parties interested in VariationIDs. |
| 59 enum IDCollectionKey { | 59 enum IDCollectionKey { |
| 60 // This collection is used by Google web properties, transmitted through the | 60 // This collection is used by Google web properties, transmitted through the |
| 61 // X-Client-Data header. | 61 // X-Client-Data header. |
| 62 GOOGLE_WEB_PROPERTIES, | 62 GOOGLE_WEB_PROPERTIES, |
| 63 // This collection is used by Google web properties for IDs that trigger | 63 // This collection is used by Google web properties for IDs that trigger |
| 64 // server side experimental behavior, transmitted through the | 64 // server side experimental behavior, transmitted through the |
| 65 // X-Client-Data header. | 65 // X-Client-Data header. |
| 66 GOOGLE_WEB_PROPERTIES_TRIGGER, | 66 GOOGLE_WEB_PROPERTIES_TRIGGER, |
| 67 // This collection is used by Google update services, transmitted through the | |
| 68 // Google Update experiment labels. | |
| 69 GOOGLE_UPDATE_SERVICE, | |
| 70 // This collection is used by Chrome Sync services, transmitted through the | 67 // This collection is used by Chrome Sync services, transmitted through the |
| 71 // Chrome Sync experiment labels. | 68 // Chrome Sync experiment labels. |
| 72 CHROME_SYNC_SERVICE, | 69 CHROME_SYNC_SERVICE, |
| 73 // The total count of collections. | 70 // The total count of collections. |
| 74 ID_COLLECTION_COUNT, | 71 ID_COLLECTION_COUNT, |
| 75 }; | 72 }; |
| 76 | 73 |
| 77 // Associate a variations::VariationID value with a FieldTrial group for | 74 // Associate a variations::VariationID value with a FieldTrial group for |
| 78 // collection |key|. If an id was previously set for |trial_name| and | 75 // collection |key|. If an id was previously set for |trial_name| and |
| 79 // |group_name|, this does nothing. The group is denoted by |trial_name| and | 76 // |group_name|, this does nothing. The group is denoted by |trial_name| and |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 void ClearAllVariationIDs(); | 193 void ClearAllVariationIDs(); |
| 197 | 194 |
| 198 // Clears all of the associated params. | 195 // Clears all of the associated params. |
| 199 void ClearAllVariationParams(); | 196 void ClearAllVariationParams(); |
| 200 | 197 |
| 201 } // namespace testing | 198 } // namespace testing |
| 202 | 199 |
| 203 } // namespace variations | 200 } // namespace variations |
| 204 | 201 |
| 205 #endif // COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ | 202 #endif // COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ |
| OLD | NEW |