| 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 14 matching lines...) Expand all Loading... |
| 25 extern const base::Feature kPhysicalWebPageSuggestionsFeature; | 25 extern const base::Feature kPhysicalWebPageSuggestionsFeature; |
| 26 extern const base::Feature kForeignSessionsSuggestionsFeature;; | 26 extern const base::Feature kForeignSessionsSuggestionsFeature;; |
| 27 | 27 |
| 28 // Feature to allow the 'save to offline' option to appear in the snippets | 28 // Feature to allow the 'save to offline' option to appear in the snippets |
| 29 // context menu. | 29 // context menu. |
| 30 extern const base::Feature kSaveToOfflineFeature; | 30 extern const base::Feature kSaveToOfflineFeature; |
| 31 | 31 |
| 32 // Feature to allow offline badges to appear on snippets. | 32 // Feature to allow offline badges to appear on snippets. |
| 33 extern const base::Feature kOfflineBadgeFeature; | 33 extern const base::Feature kOfflineBadgeFeature; |
| 34 | 34 |
| 35 // Feature to allow dismissing sections. | |
| 36 extern const base::Feature kSectionDismissalFeature; | |
| 37 | |
| 38 // Feature to allow specification of content suggestions source. | 35 // Feature to allow specification of content suggestions source. |
| 39 // TODO(peconn): Figure out how to remove this, it is useful to specify the | 36 // TODO(peconn): Figure out how to remove this, it is useful to specify the |
| 40 // source, but you shouldn't be able to disable it. | 37 // source, but you shouldn't be able to disable it. |
| 41 extern const base::Feature kContentSuggestionsSource; | 38 extern const base::Feature kContentSuggestionsSource; |
| 42 | 39 |
| 43 // Feature to allow UI as specified here: https://crbug.com/660837. | 40 // Feature to allow UI as specified here: https://crbug.com/660837. |
| 44 extern const base::Feature kIncreasedVisibility; | 41 extern const base::Feature kIncreasedVisibility; |
| 45 | 42 |
| 46 // Feature to enable the Fetch More action | 43 // Feature to enable the Fetch More action |
| 47 extern const base::Feature kFetchMoreFeature; | 44 extern const base::Feature kFetchMoreFeature; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 67 CategoryRankerChoice GetSelectedCategoryRanker(); | 64 CategoryRankerChoice GetSelectedCategoryRanker(); |
| 68 | 65 |
| 69 // Builds a CategoryRanker according to kCategoryRanker feature. | 66 // Builds a CategoryRanker according to kCategoryRanker feature. |
| 70 std::unique_ptr<CategoryRanker> BuildSelectedCategoryRanker( | 67 std::unique_ptr<CategoryRanker> BuildSelectedCategoryRanker( |
| 71 PrefService* pref_service, | 68 PrefService* pref_service, |
| 72 std::unique_ptr<base::Clock> clock); | 69 std::unique_ptr<base::Clock> clock); |
| 73 | 70 |
| 74 } // namespace ntp_snippets | 71 } // namespace ntp_snippets |
| 75 | 72 |
| 76 #endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_ | 73 #endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_ |
| OLD | NEW |