Chromium Code Reviews| 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 | |
| 22 // successive soft background fetches that react to user activity (such as | |
| 23 // opening Chrome) when there is a WiFi connectivity. | |
| 24 extern const char kSnippetSoftFetchingIntervalWifi[]; | |
| 25 // The pref name for the currently applied minimal interval between two | |
| 26 // successive soft background fetches that react to user activity (such as | |
| 27 // opening Chrome) when there is no WiFi connectivity. | |
| 28 extern const char kSnippetSoftFetchingIntervalFallback[]; | |
| 29 | 21 |
| 30 // The pref name for the currently-scheduled background fetching interval when | 22 ////////////////// Minimal interval between two successive background fetches. |
| 31 // there is WiFi connectivity. | 23 // The pref names for for the currently applied minimal intervals. For each |
| 24 // trigger there are two intervals stored in prefs: | |
| 25 // - "Wifi" for situations with unmetered network connectivity, and | |
|
markusheintz_
2017/05/15 09:35:47
We don't know whether a WIFI is unmetered.
jkrcal
2017/05/15 11:40:24
Expanded to explain better.
| |
| 26 // - "Fallback" for situations with only metered network. | |
|
markusheintz_
2017/05/15 09:35:47
Same here just the other way around.
jkrcal
2017/05/15 11:40:24
ditto
| |
| 27 | |
| 28 // Trigger: wake-up of the persistent scheduler. | |
|
markusheintz_
2017/05/15 09:35:47
The trigger comments are confusing. What informati
jkrcal
2017/05/15 11:40:24
ditto
| |
| 32 extern const char kSnippetPersistentFetchingIntervalWifi[]; | 29 extern const char kSnippetPersistentFetchingIntervalWifi[]; |
| 33 // The pref name for the currently-scheduled background fetching interval when | |
| 34 // there is no WiFi connectivity. | |
| 35 extern const char kSnippetPersistentFetchingIntervalFallback[]; | 30 extern const char kSnippetPersistentFetchingIntervalFallback[]; |
| 36 | 31 |
| 32 // Trigger: browser started-up (both cold and warm start). | |
| 33 extern const char kSnippetStartupFetchingIntervalWifi[]; | |
| 34 extern const char kSnippetStartupFetchingIntervalFallback[]; | |
| 35 | |
| 36 // Trigger: suggestions shown to the user. | |
| 37 extern const char kSnippetShownFetchingIntervalWifi[]; | |
| 38 extern const char kSnippetShownFetchingIntervalFallback[]; | |
| 39 | |
| 37 // The pref name for today's count of RemoteSuggestionsFetcher requests, so far. | 40 // The pref name for today's count of RemoteSuggestionsFetcher requests, so far. |
| 38 extern const char kSnippetFetcherRequestCount[]; | 41 extern const char kSnippetFetcherRequestCount[]; |
| 39 // The pref name for today's count of RemoteSuggestionsFetcher interactive | 42 // The pref name for today's count of RemoteSuggestionsFetcher interactive |
| 40 // requests. | 43 // requests. |
| 41 extern const char kSnippetFetcherInteractiveRequestCount[]; | 44 extern const char kSnippetFetcherInteractiveRequestCount[]; |
| 42 // The pref name for the current day for the counter of RemoteSuggestionsFetcher | 45 // The pref name for the current day for the counter of RemoteSuggestionsFetcher |
| 43 // requests. | 46 // requests. |
| 44 extern const char kSnippetFetcherRequestsDay[]; | 47 extern const char kSnippetFetcherRequestsDay[]; |
| 45 | 48 |
| 46 // The pref name for today's count of requests for article thumbnails, so far. | 49 // The pref name for today's count of requests for article thumbnails, so far. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 | 86 |
| 84 // The pref name for the current order of categories and their clicks. | 87 // The pref name for the current order of categories and their clicks. |
| 85 extern const char kClickBasedCategoryRankerOrderWithClicks[]; | 88 extern const char kClickBasedCategoryRankerOrderWithClicks[]; |
| 86 // The pref name for the time when last click decay has happened. | 89 // The pref name for the time when last click decay has happened. |
| 87 extern const char kClickBasedCategoryRankerLastDecayTime[]; | 90 extern const char kClickBasedCategoryRankerLastDecayTime[]; |
| 88 | 91 |
| 89 } // namespace prefs | 92 } // namespace prefs |
| 90 } // namespace ntp_snippets | 93 } // namespace ntp_snippets |
| 91 | 94 |
| 92 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ | 95 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ |
| OLD | NEW |