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_PREF_NAMES_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ |
6 #define COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ |
7 | 7 |
8 namespace ntp_snippets { | 8 namespace ntp_snippets { |
9 namespace prefs { | 9 namespace prefs { |
10 | 10 |
11 // If set to false, remote suggestions are completely disabled. This is set by | 11 // If set to false, remote suggestions are completely disabled. This is set by |
12 // an enterprise policy. | 12 // an enterprise policy. |
13 extern const char kEnableSnippets[]; | 13 extern const char kEnableSnippets[]; |
14 | 14 |
15 // The pref name under which remote suggestion categories (including their ID | 15 // The pref name under which remote suggestion categories (including their ID |
16 // and title) are stored. | 16 // and title) are stored. |
17 extern const char kRemoteSuggestionCategories[]; | 17 extern const char kRemoteSuggestionCategories[]; |
18 | 18 |
19 // The pref name for the last time when a background fetch was attempted. | 19 // The pref name for the last time when a background fetch was attempted. |
20 extern const char kSnippetLastFetchAttempt[]; | 20 extern const char kSnippetLastFetchAttempt[]; |
21 // The pref name for the currently applied minimal interval between two | 21 // The pref name for the currently applied minimal interval between two |
22 // successive soft background fetches that react to user activity (such as | 22 // successive soft background fetches that react to user activity (such as |
23 // opening Chrome). | 23 // opening Chrome) when there is a WiFi connectivity. |
24 extern const char kSnippetSoftFetchingIntervalOnUsageEvent[]; | 24 extern const char kSnippetSoftFetchingIntervalWifi[]; |
25 // The pref name for the currently applied minimal interval between two | 25 // The pref name for the currently applied minimal interval between two |
26 // successive soft brackground fetches when the New Tab Page is opened. | 26 // successive soft background fetches that react to user activity (such as |
27 extern const char kSnippetSoftFetchingIntervalOnNtpOpened[]; | 27 // opening Chrome) when there is no WiFi connectivity. |
| 28 extern const char kSnippetSoftFetchingIntervalFallback[]; |
28 | 29 |
29 // The pref name for the currently-scheduled background fetching interval when | 30 // The pref name for the currently-scheduled background fetching interval when |
30 // there is WiFi connectivity. | 31 // there is WiFi connectivity. |
31 extern const char kSnippetPersistentFetchingIntervalWifi[]; | 32 extern const char kSnippetPersistentFetchingIntervalWifi[]; |
32 // The pref name for the currently-scheduled background fetching interval when | 33 // The pref name for the currently-scheduled background fetching interval when |
33 // there is no WiFi connectivity. | 34 // there is no WiFi connectivity. |
34 extern const char kSnippetPersistentFetchingIntervalFallback[]; | 35 extern const char kSnippetPersistentFetchingIntervalFallback[]; |
35 | 36 |
36 // The pref name for today's count of RemoteSuggestionsFetcher requests, so far. | 37 // The pref name for today's count of RemoteSuggestionsFetcher requests, so far. |
37 extern const char kSnippetFetcherRequestCount[]; | 38 extern const char kSnippetFetcherRequestCount[]; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 83 |
83 // The pref name for the current order of categories and their clicks. | 84 // The pref name for the current order of categories and their clicks. |
84 extern const char kClickBasedCategoryRankerOrderWithClicks[]; | 85 extern const char kClickBasedCategoryRankerOrderWithClicks[]; |
85 // The pref name for the time when last click decay has happened. | 86 // The pref name for the time when last click decay has happened. |
86 extern const char kClickBasedCategoryRankerLastDecayTime[]; | 87 extern const char kClickBasedCategoryRankerLastDecayTime[]; |
87 | 88 |
88 } // namespace prefs | 89 } // namespace prefs |
89 } // namespace ntp_snippets | 90 } // namespace ntp_snippets |
90 | 91 |
91 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ | 92 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ |
OLD | NEW |