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

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

Issue 2227973002: Add request throttler to thumbnail fetching for articles on mobile NTP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tim's comments #2 Created 4 years, 4 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 extern const char kEnableSnippets[]; 11 extern const char kEnableSnippets[];
12 12
13 extern const char kSnippetHosts[]; 13 extern const char kSnippetHosts[];
14 14
15 // The pref name for today's count of NTPSnippetsFetcher requests, so far. 15 // The pref name for today's count of NTPSnippetsFetcher requests, so far.
16 extern const char kSnippetFetcherQuotaCount[]; 16 extern const char kSnippetFetcherRequestCount[];
17 // The pref name for today's count of NTPSnippetsFetcher interactive requests.
18 extern const char kSnippetFetcherInteractiveRequestCount[];
17 // The pref name for the current day for the counter of NTPSnippetsFetcher 19 // The pref name for the current day for the counter of NTPSnippetsFetcher
18 // requests. 20 // requests.
19 extern const char kSnippetFetcherQuotaDay[]; 21 extern const char kSnippetFetcherRequestsDay[];
22
23 // The pref name for today's count of requests for article thumbnails, so far.
24 extern const char kSnippetThumbnailsRequestCount[];
25 // The pref name for today's count of interactive requests for article
26 // thumbnails, so far.
27 extern const char kSnippetThumbnailsInteractiveRequestCount[];
28 // The pref name for the current day for the counter of requests for article
29 // thumbnails.
30 extern const char kSnippetThumbnailsRequestsDay[];
20 31
21 } // namespace prefs 32 } // namespace prefs
22 } // namespace ntp_snippets 33 } // namespace ntp_snippets
23 34
24 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_ 35 #endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698