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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 typedef int VariationID; | 51 typedef int VariationID; |
52 | 52 |
53 const VariationID EMPTY_ID = 0; | 53 const VariationID EMPTY_ID = 0; |
54 | 54 |
55 // A key into the Associate/Get methods for VariationIDs. This is used to create | 55 // A key into the Associate/Get methods for VariationIDs. This is used to create |
56 // separate ID associations for separate parties interested in VariationIDs. | 56 // separate ID associations for separate parties interested in VariationIDs. |
57 enum IDCollectionKey { | 57 enum IDCollectionKey { |
58 // This collection is used by Google web properties, transmitted through the | 58 // This collection is used by Google web properties, transmitted through the |
59 // X-Client-Data header. | 59 // X-Client-Data header. |
60 GOOGLE_WEB_PROPERTIES, | 60 GOOGLE_WEB_PROPERTIES, |
61 // This collection is used by Google web properties for signed in users only, | |
62 // transmitted through the X-Client-Data header. | |
63 GOOGLE_WEB_PROPERTIES_SIGNED_IN, | |
64 // This collection is used by Google web properties for IDs that trigger | 61 // This collection is used by Google web properties for IDs that trigger |
65 // server side experimental behavior, transmitted through the | 62 // server side experimental behavior, transmitted through the |
66 // X-Client-Data header. | 63 // X-Client-Data header. |
67 GOOGLE_WEB_PROPERTIES_TRIGGER, | 64 GOOGLE_WEB_PROPERTIES_TRIGGER, |
68 // This collection is used by Chrome Sync services, transmitted through the | 65 // This collection is used by Chrome Sync services, transmitted through the |
69 // Chrome Sync experiment labels. | 66 // Chrome Sync experiment labels. |
70 CHROME_SYNC_SERVICE, | 67 CHROME_SYNC_SERVICE, |
71 // The total count of collections. | 68 // The total count of collections. |
72 ID_COLLECTION_COUNT, | 69 ID_COLLECTION_COUNT, |
73 }; | 70 }; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // Clears all of the associated params. Deprecated, try to use | 170 // Clears all of the associated params. Deprecated, try to use |
174 // VariationParamsManager instead as it does a lot of work for you | 171 // VariationParamsManager instead as it does a lot of work for you |
175 // automatically. | 172 // automatically. |
176 void ClearAllVariationParams(); | 173 void ClearAllVariationParams(); |
177 | 174 |
178 } // namespace testing | 175 } // namespace testing |
179 | 176 |
180 } // namespace variations | 177 } // namespace variations |
181 | 178 |
182 #endif // COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ | 179 #endif // COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ |
OLD | NEW |