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. |
markusheintz_
2017/05/16 12:04:57
Comments should be like this:
// lalalala ...
no
jkrcal
2017/05/16 12:31:01
Done.
| |
31 // there is WiFi connectivity. | 23 // The pref names for for the currently applied minimal intervals. For each |
24 // trigger type there are intervals stored in prefs: | |
25 // - "Wifi" for situations with Wifi / unmetered network connectivity, and | |
26 // - "Fallback" for situations with only non-Wifi / metered network. | |
27 // We check "meteredness" of the current network only on platforms that support | |
28 // that, notably Android; we use WiFi as the proxy of being unmetered elsewhere. | |
29 // | |
30 // Intervals for trigger type 1: wake-up of the persistent scheduler. | |
32 extern const char kSnippetPersistentFetchingIntervalWifi[]; | 31 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[]; | 32 extern const char kSnippetPersistentFetchingIntervalFallback[]; |
33 // Intervals for trigger type 2: browser started-up (both cold and warm start). | |
34 extern const char kSnippetStartupFetchingIntervalWifi[]; | |
35 extern const char kSnippetStartupFetchingIntervalFallback[]; | |
36 // Intervals for trigger type 3: suggestions shown to the user. | |
37 extern const char kSnippetShownFetchingIntervalWifi[]; | |
38 extern const char kSnippetShownFetchingIntervalFallback[]; | |
36 | 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 |
(...skipping 37 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 |