Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Side by Side Diff: components/ntp_snippets/pref_names.h

Issue 2875953003: [Soft fetches] Set-up different intervals for <Chrome started> events. (Closed)
Patch Set: Markus's comments #2 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/ntp_snippets/pref_names.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Pref names for minimal intervals between two successive background fetches.
31 // there is WiFi connectivity. 23 //
24 // The prefs store *currently applied* minimal intervals. For each trigger type
25 // there are two intervals stored in prefs:
26 // - "Wifi" for situations with Wifi / unmetered network connectivity, and
27 // - "Fallback" for situations with only non-Wifi / metered network.
28 // We check "meteredness" of the current network only on platforms that support
29 // that, notably Android; we use WiFi as the proxy of being unmetered elsewhere.
30 //
31 // Intervals for trigger type 1: wake-up of the persistent scheduler.
32 extern const char kSnippetPersistentFetchingIntervalWifi[]; 32 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[]; 33 extern const char kSnippetPersistentFetchingIntervalFallback[];
34 // Intervals for trigger type 2: browser started-up (both cold and warm start).
35 extern const char kSnippetStartupFetchingIntervalWifi[];
36 extern const char kSnippetStartupFetchingIntervalFallback[];
37 // Intervals for trigger type 3: suggestions shown to the user.
38 extern const char kSnippetShownFetchingIntervalWifi[];
39 extern const char kSnippetShownFetchingIntervalFallback[];
36 40
37 // The pref name for today's count of RemoteSuggestionsFetcher requests, so far. 41 // The pref name for today's count of RemoteSuggestionsFetcher requests, so far.
38 extern const char kSnippetFetcherRequestCount[]; 42 extern const char kSnippetFetcherRequestCount[];
39 // The pref name for today's count of RemoteSuggestionsFetcher interactive 43 // The pref name for today's count of RemoteSuggestionsFetcher interactive
40 // requests. 44 // requests.
41 extern const char kSnippetFetcherInteractiveRequestCount[]; 45 extern const char kSnippetFetcherInteractiveRequestCount[];
42 // The pref name for the current day for the counter of RemoteSuggestionsFetcher 46 // The pref name for the current day for the counter of RemoteSuggestionsFetcher
43 // requests. 47 // requests.
44 extern const char kSnippetFetcherRequestsDay[]; 48 extern const char kSnippetFetcherRequestsDay[];
45 49
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 87
84 // The pref name for the current order of categories and their clicks. 88 // The pref name for the current order of categories and their clicks.
85 extern const char kClickBasedCategoryRankerOrderWithClicks[]; 89 extern const char kClickBasedCategoryRankerOrderWithClicks[];
86 // The pref name for the time when last click decay has happened. 90 // The pref name for the time when last click decay has happened.
87 extern const char kClickBasedCategoryRankerLastDecayTime[]; 91 extern const char kClickBasedCategoryRankerLastDecayTime[];
88 92
89 } // namespace prefs 93 } // namespace prefs
90 } // namespace ntp_snippets 94 } // namespace ntp_snippets
91 95
92 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ 96 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_
OLDNEW
« no previous file with comments | « no previous file | components/ntp_snippets/pref_names.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698