pref_names.cc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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
  3. // found in the LICENSE file.
  4. #include "components/ntp_snippets/pref_names.h"
  5. namespace ntp_snippets {
  6. namespace prefs {
  7. const char kRemoteSuggestionCategories[] = "ntp_snippets.remote_categories";
  8. const char kSnippetLastFetchAttemptTime[] = "ntp_snippets.last_fetch_attempt";
  9. const char kSnippetLastSuccessfulFetchTime[] =
  10. "ntp_snippets.last_successful_fetch_time";
  11. // For backwards compatibility, we do not rename the "fetching_" prefs (should
  12. // be "persistent_fetching_").
  13. const char kSnippetPersistentFetchingIntervalWifi[] =
  14. "ntp_snippets.fetching_interval_wifi";
  15. const char kSnippetPersistentFetchingIntervalFallback[] =
  16. "ntp_snippets.fetching_interval_fallback";
  17. const char kSnippetStartupFetchingIntervalWifi[] =
  18. "ntp_snippets.startup_fetching_interval_wifi";
  19. const char kSnippetStartupFetchingIntervalFallback[] =
  20. "ntp_snippets.startup_fetching_interval_fallback";
  21. // For backwards compatibility, we do not rename the "soft_fetching_" prefs
  22. // (should be "shown_fetching_").
  23. const char kSnippetShownFetchingIntervalWifi[] =
  24. "ntp_snippets.soft_fetching_interval_wifi";
  25. const char kSnippetShownFetchingIntervalFallback[] =
  26. "ntp_snippets.soft_fetching_interval_fallback";
  27. const char kSnippetFetcherRequestCount[] =
  28. "ntp.request_throttler.suggestion_fetcher.count";
  29. const char kSnippetFetcherInteractiveRequestCount[] =
  30. "ntp.request_throttler.suggestion_fetcher.interactive_count";
  31. const char kSnippetFetcherRequestsDay[] =
  32. "ntp.request_throttler.suggestion_fetcher.day";
  33. const char kSnippetThumbnailsRequestCount[] =
  34. "ntp.request_throttler.suggestion_thumbnails.count";
  35. const char kSnippetThumbnailsInteractiveRequestCount[] =
  36. "ntp.request_throttler.suggestion_thumbnails.interactive_count";
  37. const char kSnippetThumbnailsRequestsDay[] =
  38. "ntp.request_throttler.suggestion_thumbnails.day";
  39. const char kDismissedCategories[] = "ntp_suggestions.dismissed_categories";
  40. const char kLastSuccessfulBackgroundFetchTime[] =
  41. "ntp_suggestions.remote.last_successful_background_fetch_time";
  42. const char kUserClassifierAverageNTPOpenedPerHour[] =
  43. "ntp_suggestions.user_classifier.average_ntp_opened_per_hour";
  44. const char kUserClassifierAverageSuggestionsShownPerHour[] =
  45. "ntp_suggestions.user_classifier.average_suggestions_shown_per_hour";
  46. const char kUserClassifierAverageSuggestionsUsedPerHour[] =
  47. "ntp_suggestions.user_classifier.average_suggestions_used_per_hour";
  48. const char kUserClassifierLastTimeToOpenNTP[] =
  49. "ntp_suggestions.user_classifier.last_time_to_open_ntp";
  50. const char kUserClassifierLastTimeToShowSuggestions[] =
  51. "ntp_suggestions.user_classifier.last_time_to_show_suggestions";
  52. const char kUserClassifierLastTimeToUseSuggestions[] =
  53. "ntp_suggestions.user_classifier.last_time_to_use_suggestions";
  54. const char kClickBasedCategoryRankerOrderWithClicks[] =
  55. "ntp_suggestions.click_based_category_ranker.category_order_with_clicks";
  56. const char kClickBasedCategoryRankerLastDecayTime[] =
  57. "ntp_suggestions.click_based_category_ranker.last_decay_time";
  58. } // namespace prefs
  59. } // namespace ntp_snippets