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

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

Issue 2611523004: [Background fetching] Background fetching when opening an NTP. (Closed)
Patch Set: Rebase Created 3 years, 11 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
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.
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 an NTP).
24 extern const char kSnippetSoftFetchingIntervalOnUsageEvent[];
25
19 // The pref name for the currently-scheduled background fetching interval when 26 // The pref name for the currently-scheduled background fetching interval when
20 // there is WiFi connectivity. 27 // there is WiFi connectivity.
21 extern const char kSnippetBackgroundFetchingIntervalWifi[]; 28 extern const char kSnippetPersistentFetchingIntervalWifi[];
22 // The pref name for the currently-scheduled background fetching interval when 29 // The pref name for the currently-scheduled background fetching interval when
23 // there is no WiFi connectivity. 30 // there is no WiFi connectivity.
24 extern const char kSnippetBackgroundFetchingIntervalFallback[]; 31 extern const char kSnippetPersistentFetchingIntervalFallback[];
25 32
26 // The pref name for today's count of NTPSnippetsFetcher requests, so far. 33 // The pref name for today's count of NTPSnippetsFetcher requests, so far.
27 extern const char kSnippetFetcherRequestCount[]; 34 extern const char kSnippetFetcherRequestCount[];
28 // The pref name for today's count of NTPSnippetsFetcher interactive requests. 35 // The pref name for today's count of NTPSnippetsFetcher interactive requests.
29 extern const char kSnippetFetcherInteractiveRequestCount[]; 36 extern const char kSnippetFetcherInteractiveRequestCount[];
30 // The pref name for the current day for the counter of NTPSnippetsFetcher 37 // The pref name for the current day for the counter of NTPSnippetsFetcher
31 // requests. 38 // requests.
32 extern const char kSnippetFetcherRequestsDay[]; 39 extern const char kSnippetFetcherRequestsDay[];
33 40
34 // The pref name for today's count of requests for article thumbnails, so far. 41 // 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
71 78
72 // The pref name for the current order of categories and their clicks. 79 // The pref name for the current order of categories and their clicks.
73 extern const char kClickBasedCategoryRankerOrderWithClicks[]; 80 extern const char kClickBasedCategoryRankerOrderWithClicks[];
74 // The pref name for the time when last click decay has happened. 81 // The pref name for the time when last click decay has happened.
75 extern const char kClickBasedCategoryRankerLastDecayTime[]; 82 extern const char kClickBasedCategoryRankerLastDecayTime[];
76 83
77 } // namespace prefs 84 } // namespace prefs
78 } // namespace ntp_snippets 85 } // namespace ntp_snippets
79 86
80 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ 87 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_
OLDNEW
« no previous file with comments | « chrome/browser/ntp_snippets/content_suggestions_service_factory.cc ('k') | components/ntp_snippets/pref_names.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698