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 |
| 12 // an enterprise policy. |
11 extern const char kEnableSnippets[]; | 13 extern const char kEnableSnippets[]; |
12 | 14 |
| 15 // TODO(treib): Remove this after M56. |
13 extern const char kSnippetHosts[]; | 16 extern const char kSnippetHosts[]; |
14 | 17 |
| 18 // The pref name under which remote suggestion categories (including their ID |
| 19 // and title) are stored. |
| 20 extern const char kRemoteSuggestionCategories[]; |
| 21 |
15 // The pref name for the currently-scheduled background fetching interval when | 22 // The pref name for the currently-scheduled background fetching interval when |
16 // there is WiFi connectivity. | 23 // there is WiFi connectivity. |
17 extern const char kSnippetBackgroundFetchingIntervalWifi[]; | 24 extern const char kSnippetBackgroundFetchingIntervalWifi[]; |
18 // The pref name for the currently-scheduled background fetching interval when | 25 // The pref name for the currently-scheduled background fetching interval when |
19 // there is no WiFi connectivity. | 26 // there is no WiFi connectivity. |
20 extern const char kSnippetBackgroundFetchingIntervalFallback[]; | 27 extern const char kSnippetBackgroundFetchingIntervalFallback[]; |
21 | 28 |
22 // The pref name for today's count of NTPSnippetsFetcher requests, so far. | 29 // The pref name for today's count of NTPSnippetsFetcher requests, so far. |
23 extern const char kSnippetFetcherRequestCount[]; | 30 extern const char kSnippetFetcherRequestCount[]; |
24 // The pref name for today's count of NTPSnippetsFetcher interactive requests. | 31 // The pref name for today's count of NTPSnippetsFetcher interactive requests. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 extern const char kUserClassifierLastTimeToOpenNTP[]; | 65 extern const char kUserClassifierLastTimeToOpenNTP[]; |
59 // The pref name for the last time content suggestions were shown to the user. | 66 // The pref name for the last time content suggestions were shown to the user. |
60 extern const char kUserClassifierLastTimeToShowSuggestions[]; | 67 extern const char kUserClassifierLastTimeToShowSuggestions[]; |
61 // The pref name for the last time content suggestions were used by the user. | 68 // The pref name for the last time content suggestions were used by the user. |
62 extern const char kUserClassifierLastTimeToUseSuggestions[]; | 69 extern const char kUserClassifierLastTimeToUseSuggestions[]; |
63 | 70 |
64 } // namespace prefs | 71 } // namespace prefs |
65 } // namespace ntp_snippets | 72 } // namespace ntp_snippets |
66 | 73 |
67 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ | 74 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ |
OLD | NEW |