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

Unified Diff: components/ntp_snippets/ntp_snippets_service.h

Issue 1863133003: [NTP Snippets] Re-fetch snippets on ML changes only when the hosts actually change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@snippets_thumbnails
Patch Set: Created 4 years, 8 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/ntp_snippets_service.h
diff --git a/components/ntp_snippets/ntp_snippets_service.h b/components/ntp_snippets/ntp_snippets_service.h
index c93c441319d54e239115f255a646ffaf0e87558d..0fbbb0ff3f5bf76a7f3cea180b2f389a5ce800d6 100644
--- a/components/ntp_snippets/ntp_snippets_service.h
+++ b/components/ntp_snippets/ntp_snippets_service.h
@@ -135,6 +135,9 @@ class NTPSnippetsService : public KeyedService, NTPSnippetsFetcher::Observer {
void LoadDiscardedSnippetsFromPrefs();
void StoreDiscardedSnippetsToPrefs();
+ std::vector<std::string> GetSnippetHostsFromPrefs() const;
+ void StoreSnippetHostsToPrefs(const std::vector<std::string>& hosts);
+
bool HasDiscardedSnippet(const GURL& url) const;
void RemoveExpiredSnippets();
« no previous file with comments | « no previous file | components/ntp_snippets/ntp_snippets_service.cc » ('j') | components/ntp_snippets/ntp_snippets_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698