| 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 22 matching lines...) Expand all Loading... |
| 33 extern const base::Feature kRecentOfflineTabSuggestionsFeature; | 33 extern const base::Feature kRecentOfflineTabSuggestionsFeature; |
| 34 extern const base::Feature kPhysicalWebPageSuggestionsFeature; | 34 extern const base::Feature kPhysicalWebPageSuggestionsFeature; |
| 35 extern const base::Feature kForeignSessionsSuggestionsFeature; | 35 extern const base::Feature kForeignSessionsSuggestionsFeature; |
| 36 | 36 |
| 37 // Feature to allow UI as specified here: https://crbug.com/660837. | 37 // Feature to allow UI as specified here: https://crbug.com/660837. |
| 38 extern const base::Feature kIncreasedVisibility; | 38 extern const base::Feature kIncreasedVisibility; |
| 39 | 39 |
| 40 // Feature to prefer AMP URLs over regular URLs when available. | 40 // Feature to prefer AMP URLs over regular URLs when available. |
| 41 extern const base::Feature kPreferAmpUrlsFeature; | 41 extern const base::Feature kPreferAmpUrlsFeature; |
| 42 | 42 |
| 43 // Feature to listen for GCM push updates from the server. |
| 44 extern const base::Feature kContentSuggestionsPushFeature; |
| 45 |
| 43 // Feature to choose a category ranker. | 46 // Feature to choose a category ranker. |
| 44 extern const base::Feature kCategoryRanker; | 47 extern const base::Feature kCategoryRanker; |
| 45 | 48 |
| 46 // Feature to allow the new Google favicon server for fetching publisher icons. | 49 // Feature to allow the new Google favicon server for fetching publisher icons. |
| 47 extern const base::Feature kPublisherFaviconsFromNewServerFeature; | 50 extern const base::Feature kPublisherFaviconsFromNewServerFeature; |
| 48 | 51 |
| 49 // Parameter and its values for the kCategoryRanker feature flag. | 52 // Parameter and its values for the kCategoryRanker feature flag. |
| 50 extern const char kCategoryRankerParameter[]; | 53 extern const char kCategoryRankerParameter[]; |
| 51 extern const char kCategoryRankerConstantRanker[]; | 54 extern const char kCategoryRankerConstantRanker[]; |
| 52 extern const char kCategoryRankerClickBasedRanker[]; | 55 extern const char kCategoryRankerClickBasedRanker[]; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 constexpr int kNotificationsDefaultDailyLimit = 1; | 112 constexpr int kNotificationsDefaultDailyLimit = 1; |
| 110 | 113 |
| 111 // An integer. The number of notifications that can be ignored. If the user | 114 // An integer. The number of notifications that can be ignored. If the user |
| 112 // ignores this many notifications or more, we stop sending them. | 115 // ignores this many notifications or more, we stop sending them. |
| 113 extern const char kNotificationsIgnoredLimitParam[]; | 116 extern const char kNotificationsIgnoredLimitParam[]; |
| 114 constexpr int kNotificationsIgnoredDefaultLimit = 3; | 117 constexpr int kNotificationsIgnoredDefaultLimit = 3; |
| 115 | 118 |
| 116 } // namespace ntp_snippets | 119 } // namespace ntp_snippets |
| 117 | 120 |
| 118 #endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_ | 121 #endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_ |
| OLD | NEW |