OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_NTP_SNIPPETS_FEATURES_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_FEATURES_H_ |
6 #define COMPONENTS_NTP_SNIPPETS_FEATURES_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_FEATURES_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // Feature to allow UI as specified here: https://crbug.com/660837. | 36 // Feature to allow UI as specified here: https://crbug.com/660837. |
37 extern const base::Feature kIncreasedVisibility; | 37 extern const base::Feature kIncreasedVisibility; |
38 | 38 |
39 // Feature to prefer AMP URLs over regular URLs when available. | 39 // Feature to prefer AMP URLs over regular URLs when available. |
40 extern const base::Feature kPreferAmpUrlsFeature; | 40 extern const base::Feature kPreferAmpUrlsFeature; |
41 | 41 |
42 // Feature to choose a category ranker. | 42 // Feature to choose a category ranker. |
43 extern const base::Feature kCategoryRanker; | 43 extern const base::Feature kCategoryRanker; |
44 | 44 |
| 45 // Feature to allow the new Google favicon server for fetching publisher icons. |
| 46 extern const base::Feature kPublisherFaviconsFromNewServerFeature; |
| 47 |
45 // Parameter and its values for the kCategoryRanker feature flag. | 48 // Parameter and its values for the kCategoryRanker feature flag. |
46 extern const char kCategoryRankerParameter[]; | 49 extern const char kCategoryRankerParameter[]; |
47 extern const char kCategoryRankerConstantRanker[]; | 50 extern const char kCategoryRankerConstantRanker[]; |
48 extern const char kCategoryRankerClickBasedRanker[]; | 51 extern const char kCategoryRankerClickBasedRanker[]; |
49 | 52 |
50 enum class CategoryRankerChoice { | 53 enum class CategoryRankerChoice { |
51 CONSTANT, | 54 CONSTANT, |
52 CLICK_BASED, | 55 CLICK_BASED, |
53 }; | 56 }; |
54 | 57 |
(...skipping 17 matching lines...) Expand all Loading... |
72 GENERAL, | 75 GENERAL, |
73 EMERGING_MARKETS_ORIENTED, | 76 EMERGING_MARKETS_ORIENTED, |
74 }; | 77 }; |
75 | 78 |
76 // Returns which category order to use according to kCategoryOrder feature. | 79 // Returns which category order to use according to kCategoryOrder feature. |
77 CategoryOrderChoice GetSelectedCategoryOrder(); | 80 CategoryOrderChoice GetSelectedCategoryOrder(); |
78 | 81 |
79 } // namespace ntp_snippets | 82 } // namespace ntp_snippets |
80 | 83 |
81 #endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_ | 84 #endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_ |
OLD | NEW |