| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // // use |id| | 43 // // use |id| |
| 44 // } | 44 // } |
| 45 | 45 |
| 46 namespace base { | 46 namespace base { |
| 47 struct Feature; | 47 struct Feature; |
| 48 } | 48 } |
| 49 | 49 |
| 50 namespace variations { | 50 namespace variations { |
| 51 | 51 |
| 52 typedef int VariationID; | 52 typedef int VariationID; |
| 53 class VariationsHttpHeaderProvider; | |
| 54 | 53 |
| 55 const VariationID EMPTY_ID = 0; | 54 const VariationID EMPTY_ID = 0; |
| 56 | 55 |
| 57 // A key into the Associate/Get methods for VariationIDs. This is used to create | 56 // A key into the Associate/Get methods for VariationIDs. This is used to create |
| 58 // separate ID associations for separate parties interested in VariationIDs. | 57 // separate ID associations for separate parties interested in VariationIDs. |
| 59 enum IDCollectionKey { | 58 enum IDCollectionKey { |
| 60 // This collection is used by Google web properties, transmitted through the | 59 // This collection is used by Google web properties, transmitted through the |
| 61 // X-Client-Data header. | 60 // X-Client-Data header. |
| 62 GOOGLE_WEB_PROPERTIES, | 61 GOOGLE_WEB_PROPERTIES, |
| 63 // This collection is used by Google web properties for IDs that trigger | 62 // This collection is used by Google web properties for IDs that trigger |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 void ClearAllVariationIDs(); | 192 void ClearAllVariationIDs(); |
| 194 | 193 |
| 195 // Clears all of the associated params. | 194 // Clears all of the associated params. |
| 196 void ClearAllVariationParams(); | 195 void ClearAllVariationParams(); |
| 197 | 196 |
| 198 } // namespace testing | 197 } // namespace testing |
| 199 | 198 |
| 200 } // namespace variations | 199 } // namespace variations |
| 201 | 200 |
| 202 #endif // COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ | 201 #endif // COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ |
| OLD | NEW |