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

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

Issue 2922543002: [NTP::Push] Add Content Suggestions GCM App Handler (Closed)
Patch Set: Add missing dependency. Created 3 years, 6 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
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // The pref name for the last time content suggestions were shown to the user. 83 // The pref name for the last time content suggestions were shown to the user.
84 extern const char kUserClassifierLastTimeToShowSuggestions[]; 84 extern const char kUserClassifierLastTimeToShowSuggestions[];
85 // The pref name for the last time content suggestions were used by the user. 85 // The pref name for the last time content suggestions were used by the user.
86 extern const char kUserClassifierLastTimeToUseSuggestions[]; 86 extern const char kUserClassifierLastTimeToUseSuggestions[];
87 87
88 // 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.
89 extern const char kClickBasedCategoryRankerOrderWithClicks[]; 89 extern const char kClickBasedCategoryRankerOrderWithClicks[];
90 // 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.
91 extern const char kClickBasedCategoryRankerLastDecayTime[]; 91 extern const char kClickBasedCategoryRankerLastDecayTime[];
92 92
93 // The pref name for the subscription token used when subscription for breaking 93 // kContentSuggestionsSubscriptionData* hold the data used when subscribing for
94 // news push updates, 94 // content suggestions via GCM push updates. They are stored in pref such that
95 // in case of change (e.g. the token renders invalid), re-subscription is
96 // required.
97 ///////////////////////////////////////////////////////////////////////////////
98 // The pref name for the subscription token used when subscription for
99 // breaking news push updates.
95 extern const char kContentSuggestionsSubscriptionDataToken[]; 100 extern const char kContentSuggestionsSubscriptionDataToken[];
101 //////////////////////// End of kContentSuggestionsSubscriptionData *
102
103 // The pref name for the subscription token received from the gcm server. As
104 // recommended by the GCM team, it is cached in pref for faster bookkeeping to
105 // see if subscription exists. This is pref holds the valid token even if
106 // different from the one used for subscription. When they are different, Chrome
107 // unsubscribes the old token from the content suggestions server, subscribe
108 // with the new one and update kContentSuggestionsSubscriptionDataToken.
109 extern const char kContentSuggestionsGCMSubscriptionTokenCache[];
96 110
97 } // namespace prefs 111 } // namespace prefs
98 } // namespace ntp_snippets 112 } // namespace ntp_snippets
99 113
100 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ 114 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_
OLDNEW
« no previous file with comments | « components/ntp_snippets/breaking_news/subscription_manager_unittest.cc ('k') | components/ntp_snippets/pref_names.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698