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

Unified Diff: components/ntp_snippets/pref_names.h

Issue 2158843002: Introduce a request throttler for limiting requests in mobile NTP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix to compile unittests Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/ntp_snippets/pref_names.h
diff --git a/components/ntp_snippets/pref_names.h b/components/ntp_snippets/pref_names.h
index 5c432d6f52db03445f32db5c5e3aa0545a540c56..a491bf43733b8f68b9359c001bb719a070720042 100644
--- a/components/ntp_snippets/pref_names.h
+++ b/components/ntp_snippets/pref_names.h
@@ -12,7 +12,12 @@ extern const char kEnableSnippets[];
extern const char kSnippetHosts[];
+// Current day for counting NTPSnippetsFetcher requests.
+extern const char kSnippetFetcherQuotaDay[];
+// The count of NTPSnippetsFetcher requests for today, so far.
tschumann 2016/07/21 11:37:09 sorry for being nit-picky: But this constant is a
Marc Treib 2016/07/21 11:43:50 I think it's fairly common to have this type of co
jkrcal 2016/07/21 18:17:57 Done.
+extern const char kSnippetFetcherQuotaCount[];
+
} // namespace prefs
} // namespace ntp_snippets
-#endif
+#endif // COMPONENTS_NTP_SNIPPETS_PREF_NAMES_H_

Powered by Google App Engine
This is Rietveld 408576698