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

Unified Diff: components/ntp_snippets/ntp_snippets_fetcher.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: s/vector/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
« no previous file with comments | « no previous file | components/ntp_snippets/ntp_snippets_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/ntp_snippets_fetcher.h
diff --git a/components/ntp_snippets/ntp_snippets_fetcher.h b/components/ntp_snippets/ntp_snippets_fetcher.h
index 1fd28773c94abfdf6a57e3e7cbbd46b711e96803..af17fbe9d8ad5bc258bac43b44b4c0e8094641c0 100644
--- a/components/ntp_snippets/ntp_snippets_fetcher.h
+++ b/components/ntp_snippets/ntp_snippets_fetcher.h
@@ -5,8 +5,8 @@
#ifndef COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_FETCHER_H_
#define COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_FETCHER_H_
+#include <set>
#include <string>
-#include <vector>
#include "base/callback.h"
#include "base/callback_list.h"
@@ -37,7 +37,7 @@ class NTPSnippetsFetcher : public net::URLFetcherDelegate {
// Fetches snippets from the server. |hosts| can be used to restrict the
// results to a set of hosts, e.g. "www.google.com". If it is empty, no
// restrictions are applied.
- void FetchSnippets(const std::vector<std::string>& hosts);
+ void FetchSnippets(const std::set<std::string>& hosts);
private:
// URLFetcherDelegate implementation.
« no previous file with comments | « no previous file | components/ntp_snippets/ntp_snippets_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698