| 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 an NTP). | 23 // opening Chrome). |
| 24 extern const char kSnippetSoftFetchingIntervalOnUsageEvent[]; | 24 extern const char kSnippetSoftFetchingIntervalOnUsageEvent[]; |
| 25 // The pref name for the currently applied minimal interval between two |
| 26 // successive soft brackground fetches when the New Tab Page is opened. |
| 27 extern const char kSnippetSoftFetchingIntervalOnNtpOpened[]; |
| 25 | 28 |
| 26 // The pref name for the currently-scheduled background fetching interval when | 29 // The pref name for the currently-scheduled background fetching interval when |
| 27 // there is WiFi connectivity. | 30 // there is WiFi connectivity. |
| 28 extern const char kSnippetPersistentFetchingIntervalWifi[]; | 31 extern const char kSnippetPersistentFetchingIntervalWifi[]; |
| 29 // The pref name for the currently-scheduled background fetching interval when | 32 // The pref name for the currently-scheduled background fetching interval when |
| 30 // there is no WiFi connectivity. | 33 // there is no WiFi connectivity. |
| 31 extern const char kSnippetPersistentFetchingIntervalFallback[]; | 34 extern const char kSnippetPersistentFetchingIntervalFallback[]; |
| 32 | 35 |
| 33 // The pref name for today's count of RemoteSuggestionsFetcher requests, so far. | 36 // The pref name for today's count of RemoteSuggestionsFetcher requests, so far. |
| 34 extern const char kSnippetFetcherRequestCount[]; | 37 extern const char kSnippetFetcherRequestCount[]; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 82 |
| 80 // The pref name for the current order of categories and their clicks. | 83 // The pref name for the current order of categories and their clicks. |
| 81 extern const char kClickBasedCategoryRankerOrderWithClicks[]; | 84 extern const char kClickBasedCategoryRankerOrderWithClicks[]; |
| 82 // The pref name for the time when last click decay has happened. | 85 // The pref name for the time when last click decay has happened. |
| 83 extern const char kClickBasedCategoryRankerLastDecayTime[]; | 86 extern const char kClickBasedCategoryRankerLastDecayTime[]; |
| 84 | 87 |
| 85 } // namespace prefs | 88 } // namespace prefs |
| 86 } // namespace ntp_snippets | 89 } // namespace ntp_snippets |
| 87 | 90 |
| 88 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ | 91 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ |
| OLD | NEW |