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 CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_ | 5 #ifndef CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_ |
6 #define CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_ | 6 #define CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_ |
7 | 7 |
8 #include "base/feature_list.h" | 8 #include "base/feature_list.h" |
9 | 9 |
10 // Enables and configures notifications for content suggestions. | 10 // Enables and configures notifications for content suggestions. |
11 extern const base::Feature kContentSuggestionsNotificationsFeature; | 11 extern const base::Feature kContentSuggestionsNotificationsFeature; |
12 | 12 |
13 // "false": use server signals to decide whether to send a notification | 13 // "false": use server signals to decide whether to send a notification |
14 // "true": always send a notification when we receive ARTICLES suggestions | 14 // "true": always send a notification when we receive ARTICLES suggestions |
15 extern const char kContentSuggestionsNotificationsAlwaysNotifyParam[]; | 15 extern const char kContentSuggestionsNotificationsAlwaysNotifyParam[]; |
16 | 16 |
| 17 // An integer. The number of notifications that can be ignored. If the user |
| 18 // ignores this many notifications or more, we stop sending them. |
| 19 extern const char kContentSuggestionsNotificationsIgnoredLimitParam[]; |
| 20 constexpr int kContentSuggestionsNotificationsIgnoredDefaultLimit = 3; |
| 21 |
17 #endif // CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_ | 22 #endif // CHROME_BROWSER_NTP_SNIPPETS_NTP_SNIPPETS_FEATURES_H_ |
OLD | NEW |