1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/ntp_snippets/pref_names.h"
namespace ntp_snippets {
namespace prefs {
const char kEnableSnippets[] = "ntp_snippets.enable";
const char kArticlesListVisible[] = "ntp_snippets.list_visible";
const char kRemoteSuggestionCategories[] = "ntp_snippets.remote_categories";
const char kSnippetLastFetchAttemptTime[] = "ntp_snippets.last_fetch_attempt";
const char kSnippetLastSuccessfulFetchTime[] =
"ntp_snippets.last_successful_fetch_time";
// For backwards compatibility, we do not rename the "fetching_" prefs (should
// be "persistent_fetching_").
const char kSnippetPersistentFetchingIntervalWifi[] =
"ntp_snippets.fetching_interval_wifi";
const char kSnippetPersistentFetchingIntervalFallback[] =
"ntp_snippets.fetching_interval_fallback";
const char kSnippetStartupFetchingIntervalWifi[] =
"ntp_snippets.startup_fetching_interval_wifi";
const char kSnippetStartupFetchingIntervalFallback[] =
"ntp_snippets.startup_fetching_interval_fallback";
// For backwards compatibility, we do not rename the "soft_fetching_" prefs
// (should be "shown_fetching_").
const char kSnippetShownFetchingIntervalWifi[] =
"ntp_snippets.soft_fetching_interval_wifi";
const char kSnippetShownFetchingIntervalFallback[] =
"ntp_snippets.soft_fetching_interval_fallback";
const char kSnippetFetcherRequestCount[] =
"ntp.request_throttler.suggestion_fetcher.count";
const char kSnippetFetcherInteractiveRequestCount[] =
"ntp.request_throttler.suggestion_fetcher.interactive_count";
const char kSnippetFetcherRequestsDay[] =
"ntp.request_throttler.suggestion_fetcher.day";
const char kSnippetThumbnailsRequestCount[] =
"ntp.request_throttler.suggestion_thumbnails.count";
const char kSnippetThumbnailsInteractiveRequestCount[] =
"ntp.request_throttler.suggestion_thumbnails.interactive_count";
const char kSnippetThumbnailsRequestsDay[] =
"ntp.request_throttler.suggestion_thumbnails.day";
const char kDismissedAssetDownloadSuggestions[] =
"ntp_suggestions.downloads.assets.dismissed_ids";
const char kDismissedForeignSessionsSuggestions[] =
"ntp_suggestions.foreign_sessions.dismissed_ids";
const char kDismissedOfflinePageDownloadSuggestions[] =
"ntp_suggestions.downloads.offline_pages.dismissed_ids";
const char kDismissedCategories[] = "ntp_suggestions.dismissed_categories";
const char kLastSuccessfulBackgroundFetchTime[] =
"ntp_suggestions.remote.last_successful_background_fetch_time";
const char kUserClassifierAverageNTPOpenedPerHour[] =
"ntp_suggestions.user_classifier.average_ntp_opened_per_hour";
const char kUserClassifierAverageSuggestionsShownPerHour[] =
"ntp_suggestions.user_classifier.average_suggestions_shown_per_hour";
const char kUserClassifierAverageSuggestionsUsedPerHour[] =
"ntp_suggestions.user_classifier.average_suggestions_used_per_hour";
const char kUserClassifierLastTimeToOpenNTP[] =
"ntp_suggestions.user_classifier.last_time_to_open_ntp";
const char kUserClassifierLastTimeToShowSuggestions[] =
"ntp_suggestions.user_classifier.last_time_to_show_suggestions";
const char kUserClassifierLastTimeToUseSuggestions[] =
"ntp_suggestions.user_classifier.last_time_to_use_suggestions";
const char kClickBasedCategoryRankerOrderWithClicks[] =
"ntp_suggestions.click_based_category_ranker.category_order_with_clicks";
const char kClickBasedCategoryRankerLastDecayTime[] =
"ntp_suggestions.click_based_category_ranker.last_decay_time";
const char kBreakingNewsSubscriptionDataToken[] =
"ntp_suggestions.breaking_news_subscription_data.token";
const char kBreakingNewsSubscriptionDataIsAuthenticated[] =
"ntp_suggestions.breaking_news_subscription_data.is_authenticated";
const char kBreakingNewsGCMSubscriptionTokenCache[] =
"ntp_suggestions.breaking_news_gcm_subscription_token_cache";
const char kBreakingNewsGCMLastTokenValidationTime[] =
"ntp_suggestions.breaking_news_gcm_last_token_validation_time";
const char kBreakingNewsGCMLastForcedSubscriptionTime[] =
"ntp_suggestions.breaking_news_gcm_last_forced_subscription_time";
} // namespace prefs
} // namespace ntp_snippets
|