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

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

Issue 2182553002: Add other variations (with ids) for NTPSnippets to chrome://flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Alexei's comment #5 + fix a bug Created 4 years, 4 months 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 <string> 10 #include <string>
11 #include <vector>
10 12
11 #include "base/metrics/field_trial.h" 13 #include "base/metrics/field_trial.h"
12 #include "components/variations/active_field_trials.h" 14 #include "components/variations/active_field_trials.h"
13 15
14 // This file provides various helpers that extend the functionality around 16 // This file provides various helpers that extend the functionality around
15 // base::FieldTrial. 17 // base::FieldTrial.
16 // 18 //
17 // This includes several simple APIs to handle getting and setting additional 19 // This includes several simple APIs to handle getting and setting additional
18 // data related to Chrome variations, such as parameters and Google variation 20 // data related to Chrome variations, such as parameters and Google variation
19 // IDs. These APIs are meant to extend the base::FieldTrial APIs to offer extra 21 // IDs. These APIs are meant to extend the base::FieldTrial APIs to offer extra
(...skipping 21 matching lines...) Expand all
41 // // use |id| 43 // // use |id|
42 // } 44 // }
43 45
44 namespace base { 46 namespace base {
45 struct Feature; 47 struct Feature;
46 } 48 }
47 49
48 namespace variations { 50 namespace variations {
49 51
50 typedef int VariationID; 52 typedef int VariationID;
53 class VariationsHttpHeaderProvider;
51 54
52 const VariationID EMPTY_ID = 0; 55 const VariationID EMPTY_ID = 0;
53 56
54 // 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
55 // separate ID associations for separate parties interested in VariationIDs. 58 // separate ID associations for separate parties interested in VariationIDs.
56 enum IDCollectionKey { 59 enum IDCollectionKey {
57 // This collection is used by Google web properties, transmitted through the 60 // This collection is used by Google web properties, transmitted through the
58 // X-Client-Data header. 61 // X-Client-Data header.
59 GOOGLE_WEB_PROPERTIES, 62 GOOGLE_WEB_PROPERTIES,
60 // 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
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « components/flags_ui/flags_state_unittest.cc ('k') | components/variations/variations_associated_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698