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

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

Issue 2279123002: [Sync] Initial implementation of foreign sessions suggestions provider. (Closed)
Patch Set: Adding sessions deps to BUILD.gn Created 4 years, 3 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 class PrefService;
Marc Treib 2016/09/16 12:26:48 not needed?
skym 2016/09/16 18:18:48 Done.
9
8 namespace ntp_snippets { 10 namespace ntp_snippets {
9 namespace prefs { 11 namespace prefs {
10 12
11 extern const char kEnableSnippets[]; 13 extern const char kEnableSnippets[];
12 14
13 extern const char kSnippetHosts[]; 15 extern const char kSnippetHosts[];
14 16
15 // The pref name for today's count of NTPSnippetsFetcher requests, so far. 17 // The pref name for today's count of NTPSnippetsFetcher requests, so far.
16 extern const char kSnippetFetcherRequestCount[]; 18 extern const char kSnippetFetcherRequestCount[];
17 // The pref name for today's count of NTPSnippetsFetcher interactive requests. 19 // The pref name for today's count of NTPSnippetsFetcher interactive requests.
18 extern const char kSnippetFetcherInteractiveRequestCount[]; 20 extern const char kSnippetFetcherInteractiveRequestCount[];
19 // The pref name for the current day for the counter of NTPSnippetsFetcher 21 // The pref name for the current day for the counter of NTPSnippetsFetcher
20 // requests. 22 // requests.
21 extern const char kSnippetFetcherRequestsDay[]; 23 extern const char kSnippetFetcherRequestsDay[];
22 24
23 // The pref name for today's count of requests for article thumbnails, so far. 25 // The pref name for today's count of requests for article thumbnails, so far.
24 extern const char kSnippetThumbnailsRequestCount[]; 26 extern const char kSnippetThumbnailsRequestCount[];
25 // The pref name for today's count of interactive requests for article 27 // The pref name for today's count of interactive requests for article
26 // thumbnails, so far. 28 // thumbnails, so far.
27 extern const char kSnippetThumbnailsInteractiveRequestCount[]; 29 extern const char kSnippetThumbnailsInteractiveRequestCount[];
28 // The pref name for the current day for the counter of requests for article 30 // The pref name for the current day for the counter of requests for article
29 // thumbnails. 31 // thumbnails.
30 extern const char kSnippetThumbnailsRequestsDay[]; 32 extern const char kSnippetThumbnailsRequestsDay[];
31 33
32 extern const char kDismissedRecentOfflineTabSuggestions[]; 34 extern const char kDismissedRecentOfflineTabSuggestions[];
33 extern const char kDismissedDownloadSuggestions[]; 35 extern const char kDismissedDownloadSuggestions[];
36 extern const char kDismissedForeignSessionsSuggestions[];
34 37
35 // The pref name for the time when M54 was first started on the device. 38 // The pref name for the time when M54 was first started on the device.
36 extern const char kBookmarksFirstM54Start[]; 39 extern const char kBookmarksFirstM54Start[];
37 40
38 // The pref name for the discounted average number of browsing sessions per hour 41 // The pref name for the discounted average number of browsing sessions per hour
39 // that involve opening a new NTP. 42 // that involve opening a new NTP.
40 extern const char kUserClassifierAverageNTPOpenedPerHour[]; 43 extern const char kUserClassifierAverageNTPOpenedPerHour[];
41 // The pref name for the discounted average number of browsing sessions per hour 44 // The pref name for the discounted average number of browsing sessions per hour
42 // that involve opening showing the content suggestions. 45 // that involve opening showing the content suggestions.
43 extern const char kUserClassifierAverageSuggestionsShownPerHour[]; 46 extern const char kUserClassifierAverageSuggestionsShownPerHour[];
44 // The pref name for the discounted average number of browsing sessions per hour 47 // The pref name for the discounted average number of browsing sessions per hour
45 // that involve using content suggestions (i.e. opening one or clicking on the 48 // that involve using content suggestions (i.e. opening one or clicking on the
46 // "More" button). 49 // "More" button).
47 extern const char kUserClassifierAverageSuggestionsUsedPerHour[]; 50 extern const char kUserClassifierAverageSuggestionsUsedPerHour[];
48 51
49 // The pref name for the last time a new NTP was opened. 52 // The pref name for the last time a new NTP was opened.
50 extern const char kUserClassifierLastTimeToOpenNTP[]; 53 extern const char kUserClassifierLastTimeToOpenNTP[];
51 // The pref name for the last time content suggestions were shown to the user. 54 // The pref name for the last time content suggestions were shown to the user.
52 extern const char kUserClassifierLastTimeToShowSuggestions[]; 55 extern const char kUserClassifierLastTimeToShowSuggestions[];
53 // The pref name for the last time content suggestions were used by the user. 56 // The pref name for the last time content suggestions were used by the user.
54 extern const char kUserClassifierLastTimeToUseSuggestions[]; 57 extern const char kUserClassifierLastTimeToUseSuggestions[];
55 58
56 } // namespace prefs 59 } // namespace prefs
57 } // namespace ntp_snippets 60 } // namespace ntp_snippets
58 61
59 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ 62 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698