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

Unified Diff: components/suggestions/suggestions_service.h

Issue 1259123002: SuggestionsService support for Desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/suggestions/suggestions_service.h
diff --git a/components/suggestions/suggestions_service.h b/components/suggestions/suggestions_service.h
index 34e03622c6c1dbca92d3acd9617f443aac9746b4..6a157ac7e3d4c87b1bbcf0d1c0428bf4f4e66481 100644
--- a/components/suggestions/suggestions_service.h
+++ b/components/suggestions/suggestions_service.h
@@ -87,6 +87,9 @@ class SuggestionsService : public KeyedService, public net::URLFetcherDelegate {
const ResponseCallback& callback,
const base::Closure& fail_callback);
+ // Removes all URLs from the blacklist then invokes |callback|.
+ void ClearBlacklist(const ResponseCallback& callback);
+
// Determines which URL a blacklist request was for, irrespective of the
// request's status. Returns false if |request| is not a blacklist request.
static bool GetBlacklistedUrl(const net::URLFetcher& request, GURL* url);
@@ -138,6 +141,8 @@ class SuggestionsService : public KeyedService, public net::URLFetcherDelegate {
// Updates |scheduling_delay_| based on the success of the last request.
void UpdateBlacklistDelay(bool last_request_successful);
+ void PopulateFavicons(SuggestionsProfile* suggestions);
Mathieu 2015/07/28 13:09:29 PopulateFaviconUrls?
Mathieu 2015/07/28 13:09:29 comment
fserb 2015/07/28 15:31:34 Done.
fserb 2015/07/28 15:31:34 Done.
+
// Test seams.
base::TimeDelta blacklist_delay() const { return scheduling_delay_; }
void set_blacklist_delay(base::TimeDelta delay) {

Powered by Google App Engine
This is Rietveld 408576698