| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class VariationsHttpHeaderProvider; | 53 class VariationsHttpHeaderProvider; |
| 54 | 54 |
| 55 const VariationID EMPTY_ID = 0; | 55 const VariationID EMPTY_ID = 0; |
| 56 | 56 |
| 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 signed in users only, |
| 64 // transmitted through the X-Client-Data header. |
| 65 GOOGLE_WEB_PROPERTIES_SIGNED_IN, |
| 63 // This collection is used by Google web properties for IDs that trigger | 66 // This collection is used by Google web properties for IDs that trigger |
| 64 // server side experimental behavior, transmitted through the | 67 // server side experimental behavior, transmitted through the |
| 65 // X-Client-Data header. | 68 // X-Client-Data header. |
| 66 GOOGLE_WEB_PROPERTIES_TRIGGER, | 69 GOOGLE_WEB_PROPERTIES_TRIGGER, |
| 67 // This collection is used by Chrome Sync services, transmitted through the | 70 // This collection is used by Chrome Sync services, transmitted through the |
| 68 // Chrome Sync experiment labels. | 71 // Chrome Sync experiment labels. |
| 69 CHROME_SYNC_SERVICE, | 72 CHROME_SYNC_SERVICE, |
| 70 // The total count of collections. | 73 // The total count of collections. |
| 71 ID_COLLECTION_COUNT, | 74 ID_COLLECTION_COUNT, |
| 72 }; | 75 }; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 void ClearAllVariationIDs(); | 196 void ClearAllVariationIDs(); |
| 194 | 197 |
| 195 // Clears all of the associated params. | 198 // Clears all of the associated params. |
| 196 void ClearAllVariationParams(); | 199 void ClearAllVariationParams(); |
| 197 | 200 |
| 198 } // namespace testing | 201 } // namespace testing |
| 199 | 202 |
| 200 } // namespace variations | 203 } // namespace variations |
| 201 | 204 |
| 202 #endif // COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ | 205 #endif // COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ |
| OLD | NEW |