blob: 8f998d34aea90a4fac24da2effbab3232607cfe7 [file] [log] [blame]
treibec8f3302016-08-04 11:05:201// Copyright 2016 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef COMPONENTS_NTP_SNIPPETS_FEATURES_H_
6#define COMPONENTS_NTP_SNIPPETS_FEATURES_H_
7
skym9e961db2016-09-19 19:02:088#include <string>
9
treibec8f3302016-08-04 11:05:2010#include "base/feature_list.h"
11
12namespace ntp_snippets {
13
pkec4fe8dd2016-08-12 14:34:4114// Features to turn individual providers/categories on/off.
treib5bc62a82016-08-09 11:30:1515extern const base::Feature kArticleSuggestionsFeature;
pke2f529e9c2016-08-05 11:52:0716extern const base::Feature kBookmarkSuggestionsFeature;
pkec4fe8dd2016-08-12 14:34:4117extern const base::Feature kRecentOfflineTabSuggestionsFeature;
18extern const base::Feature kDownloadSuggestionsFeature;
vitaliii762478d2016-08-17 09:50:5719extern const base::Feature kPhysicalWebPageSuggestionsFeature;
dgnbb750202016-10-20 12:39:4520extern const base::Feature kForeignSessionsSuggestionsFeature;;
treib5bc62a82016-08-09 11:30:1521
peconn279b4d52016-08-12 18:42:0122// Feature to allow the 'save to offline' option to appear in the snippets
23// context menu.
24extern const base::Feature kSaveToOfflineFeature;
25
peconncde6298d2016-10-26 21:46:2126// Feature to allow offline badges to appear on snippets.
27extern const base::Feature kOfflineBadgeFeature;
28
dgnbb750202016-10-20 12:39:4529// Feature to allow dismissing sections.
30extern const base::Feature kSectionDismissalFeature;
31
treib5bc62a82016-08-09 11:30:1532// Global toggle for the whole content suggestions feature. If this is set to
33// false, all the per-provider features are ignored.
treibec8f3302016-08-04 11:05:2034extern const base::Feature kContentSuggestionsFeature;
35
dgn5684fd592016-11-04 15:26:5636// Feature to enable the Fetch More action
37extern const base::Feature kFetchMoreFeature;
38
skym9e961db2016-09-19 19:02:0839// Returns a feature param as an int instead of a string.
40int GetParamAsInt(const base::Feature& feature,
41 const std::string& param_name,
42 int default_value);
43
treibec8f3302016-08-04 11:05:2044} // namespace ntp_snippets
45
46#endif // COMPONENTS_NTP_SNIPPETS_FEATURES_H_