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

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

Issue 2611523004: [Background fetching] Background fetching when opening an NTP. (Closed)
Patch Set: 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 soonest moment when the next soft background (active)
20 // fetch may occur.
21 extern const char kSnippetNextActiveSoftFetch[];
22 // The pref name for the currently applied minimal interval between two
23 // successive soft background fetches that react to user activity (such as
24 // opening an NTP).
25 extern const char kSnippetSoftFetchingIntervalActive[];
26
19 // The pref name for the currently-scheduled background fetching interval when 27 // The pref name for the currently-scheduled background fetching interval when
20 // there is WiFi connectivity. 28 // there is WiFi connectivity.
21 extern const char kSnippetBackgroundFetchingIntervalWifi[]; 29 extern const char kSnippetBackgroundFetchingIntervalWifi[];
22 // The pref name for the currently-scheduled background fetching interval when 30 // The pref name for the currently-scheduled background fetching interval when
23 // there is no WiFi connectivity. 31 // there is no WiFi connectivity.
24 extern const char kSnippetBackgroundFetchingIntervalFallback[]; 32 extern const char kSnippetBackgroundFetchingIntervalFallback[];
25 33
26 // The pref name for today's count of NTPSnippetsFetcher requests, so far. 34 // The pref name for today's count of NTPSnippetsFetcher requests, so far.
27 extern const char kSnippetFetcherRequestCount[]; 35 extern const char kSnippetFetcherRequestCount[];
28 // The pref name for today's count of NTPSnippetsFetcher interactive requests. 36 // The pref name for today's count of NTPSnippetsFetcher interactive requests.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // The pref name for the last time content suggestions were used by the user. 77 // The pref name for the last time content suggestions were used by the user.
70 extern const char kUserClassifierLastTimeToUseSuggestions[]; 78 extern const char kUserClassifierLastTimeToUseSuggestions[];
71 79
72 // The pref name for the current order of categories and their clicks. 80 // The pref name for the current order of categories and their clicks.
73 extern const char kClickBasedCategoryRankerOrderWithClicks[]; 81 extern const char kClickBasedCategoryRankerOrderWithClicks[];
74 82
75 } // namespace prefs 83 } // namespace prefs
76 } // namespace ntp_snippets 84 } // namespace ntp_snippets
77 85
78 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ 86 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698