Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Side by Side Diff: components/variations/variations_associated_data.h

Issue 2558913003: Restrict transmission of external exp ids to signed in users. (Closed)
Patch Set: Add comments to callsites and API headers. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 collected is used by Google web properties for signed in users only,
jwd 2016/12/12 16:04:43 nit: collection
Alexei Svitkine (slow) 2016/12/12 16:13:19 Done.
62 // transmitted through the X-Client-Data header.
63 GOOGLE_WEB_PROPERTIES_SIGNED_IN,
61 // This collection is used by Google web properties for IDs that trigger 64 // This collection is used by Google web properties for IDs that trigger
62 // server side experimental behavior, transmitted through the 65 // server side experimental behavior, transmitted through the
63 // X-Client-Data header. 66 // X-Client-Data header.
64 GOOGLE_WEB_PROPERTIES_TRIGGER, 67 GOOGLE_WEB_PROPERTIES_TRIGGER,
65 // This collection is used by Chrome Sync services, transmitted through the 68 // This collection is used by Chrome Sync services, transmitted through the
66 // Chrome Sync experiment labels. 69 // Chrome Sync experiment labels.
67 CHROME_SYNC_SERVICE, 70 CHROME_SYNC_SERVICE,
68 // The total count of collections. 71 // The total count of collections.
69 ID_COLLECTION_COUNT, 72 ID_COLLECTION_COUNT,
70 }; 73 };
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // Clears all of the associated params. Deprecated, try to use 173 // Clears all of the associated params. Deprecated, try to use
171 // VariationParamsManager instead as it does a lot of work for you 174 // VariationParamsManager instead as it does a lot of work for you
172 // automatically. 175 // automatically.
173 void ClearAllVariationParams(); 176 void ClearAllVariationParams();
174 177
175 } // namespace testing 178 } // namespace testing
176 179
177 } // namespace variations 180 } // namespace variations
178 181
179 #endif // COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_ 182 #endif // COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698