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

Unified Diff: chrome/browser/favicon/favicon_service.h

Issue 26563004: Find Favicon in priority of icon_type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add a new method Created 7 years, 2 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 | chrome/browser/favicon/favicon_service.cc » ('j') | chrome/browser/favicon/favicon_service.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/favicon/favicon_service.h
diff --git a/chrome/browser/favicon/favicon_service.h b/chrome/browser/favicon/favicon_service.h
index 692a6ebe74e1d570670da09befcfc51ec8658a50..5df8c61276eebf94e5e22f871472ff5d1c984d00 100644
--- a/chrome/browser/favicon/favicon_service.h
+++ b/chrome/browser/favicon/favicon_service.h
@@ -172,6 +172,15 @@ class FaviconService : public CancelableRequestProvider,
const FaviconRawCallback& callback,
CancelableTaskTracker* tracker);
+ // See history::HistoryService::GetLargestFaviconForURL.
+ CancelableTaskTracker::TaskId GetLargestRawFaviconForURL(
+ Profile* profile,
sky 2013/10/15 15:03:47 Why do we need the profile here? Doesn't FaviconSe
michaelbai 2013/10/15 19:36:31 Currently, it seemed that FaviconService are not s
sky 2013/10/16 13:27:15 I don't think there is a good reason for this. Mak
michaelbai 2013/10/16 18:17:05 I will do it in separated patch. https://crbug/308
+ const GURL& page_url,
+ const std::vector<int>& icon_types,
+ int minimal_size_in_pixel,
sky 2013/10/15 15:03:47 minimum_size_in_pixels here and everywhere.
michaelbai 2013/10/15 19:36:31 Done.
+ const FaviconRawCallback& callback,
+ CancelableTaskTracker* tracker);
+
CancelableTaskTracker::TaskId GetFaviconForURL(
const FaviconForURLParams& params,
const FaviconResultsCallback& callback,
@@ -246,6 +255,14 @@ class FaviconService : public CancelableRequestProvider,
const FaviconResultsCallback& callback,
CancelableTaskTracker* tracker);
+ CancelableTaskTracker::TaskId GetLargestRawFaviconForURLImpl(
+ Profile* profile,
+ const GURL& page_url,
+ const std::vector<int>& icon_types,
+ int minimal_size_in_pixel,
+ const FaviconResultsCallback& callback,
+ CancelableTaskTracker* tracker);
+
// Intermediate callback for GetFaviconImage() and GetFaviconImageForURL()
// so that history service can deal solely with FaviconResultsCallback.
// Builds chrome::FaviconImageResult from |favicon_bitmap_results| and runs
« no previous file with comments | « no previous file | chrome/browser/favicon/favicon_service.cc » ('j') | chrome/browser/favicon/favicon_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698