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..171f893dc96d2376ba963feffa77c7c3d4e7968b 100644 |
--- a/chrome/browser/favicon/favicon_service.h |
+++ b/chrome/browser/favicon/favicon_service.h |
@@ -46,13 +46,29 @@ class FaviconService : public CancelableRequestProvider, |
int desired_size_in_dip) |
: profile(profile), |
page_url(page_url), |
+ desired_size_in_dip(desired_size_in_dip), |
+ threshold_for_next_icon_types(0) { |
+ FaviconForURLParams::icon_types.push_back(icon_types); |
+ } |
+ |
+ // Used to get best fit icon with icon types priority, see |
+ // HistoryService::GetFaviconsForURL. |
+ FaviconForURLParams(Profile* profile, |
+ const GURL& page_url, |
+ const std::vector<int>& icon_types, |
+ int desired_size_in_dip, |
+ int threshold_for_next_icon_types) |
+ : profile(profile), |
+ page_url(page_url), |
icon_types(icon_types), |
- desired_size_in_dip(desired_size_in_dip) {} |
+ desired_size_in_dip(desired_size_in_dip), |
+ threshold_for_next_icon_types(threshold_for_next_icon_types) {} |
Profile* profile; |
GURL page_url; |
- int icon_types; |
+ std::vector<int> icon_types; |
int desired_size_in_dip; |
+ int threshold_for_next_icon_types; |
}; |
// Callback for GetFaviconImage() and GetFaviconImageForURL(). |