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

Side by Side Diff: components/ntp_snippets/features.h

Issue 2744253004: NTP: clang-format (Closed)
Patch Set: rebase Created 3 years, 8 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 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
11 #include "base/feature_list.h" 11 #include "base/feature_list.h"
12 #include "components/ntp_snippets/category_rankers/category_ranker.h" 12 #include "components/ntp_snippets/category_rankers/category_ranker.h"
13 #include "components/prefs/pref_service.h" 13 #include "components/prefs/pref_service.h"
14 14
15 namespace base { 15 namespace base {
16 class Clock; 16 class Clock;
17 } 17 }
18 18
19 namespace ntp_snippets { 19 namespace ntp_snippets {
20 20
21 // Features to turn individual providers/categories on/off. 21 // Features to turn individual providers/categories on/off.
22 // TODO(jkrcal): Rename to kRemoteSuggestionsFeature. 22 // TODO(jkrcal): Rename to kRemoteSuggestionsFeature.
23 extern const base::Feature kArticleSuggestionsFeature; 23 extern const base::Feature kArticleSuggestionsFeature;
24 extern const base::Feature kBookmarkSuggestionsFeature; 24 extern const base::Feature kBookmarkSuggestionsFeature;
25 extern const base::Feature kRecentOfflineTabSuggestionsFeature; 25 extern const base::Feature kRecentOfflineTabSuggestionsFeature;
26 extern const base::Feature kPhysicalWebPageSuggestionsFeature; 26 extern const base::Feature kPhysicalWebPageSuggestionsFeature;
27 extern const base::Feature kForeignSessionsSuggestionsFeature;; 27 extern const base::Feature kForeignSessionsSuggestionsFeature;
28 28
29 // Feature to allow the 'save to offline' option to appear in the snippets 29 // Feature to allow the 'save to offline' option to appear in the snippets
30 // context menu. 30 // context menu.
31 extern const base::Feature kSaveToOfflineFeature; 31 extern const base::Feature kSaveToOfflineFeature;
32 32
33 // Feature to allow offline badges to appear on snippets. 33 // Feature to allow offline badges to appear on snippets.
34 extern const base::Feature kOfflineBadgeFeature; 34 extern const base::Feature kOfflineBadgeFeature;
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;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 GENERAL, 72 GENERAL,
73 EMERGING_MARKETS_ORIENTED, 73 EMERGING_MARKETS_ORIENTED,
74 }; 74 };
75 75
76 // Returns which category order to use according to kCategoryOrder feature. 76 // Returns which category order to use according to kCategoryOrder feature.
77 CategoryOrderChoice GetSelectedCategoryOrder(); 77 CategoryOrderChoice GetSelectedCategoryOrder();
78 78
79 } // namespace ntp_snippets 79 } // namespace ntp_snippets
80 80
81 #endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_ 81 #endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_
OLDNEW
« no previous file with comments | « components/ntp_snippets/content_suggestions_service.cc ('k') | components/ntp_snippets/features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698