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

Side by Side Diff: components/favicon/core/browser/favicon_service.h

Issue 1018733002: [Icons NTP] FaviconService: Add method to retrieve large icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_FAVICON_CORE_BROWSER_FAVICON_SERVICE_H_ 5 #ifndef COMPONENTS_FAVICON_CORE_BROWSER_FAVICON_SERVICE_H_
6 #define COMPONENTS_FAVICON_CORE_BROWSER_FAVICON_SERVICE_H_ 6 #define COMPONENTS_FAVICON_CORE_BROWSER_FAVICON_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 const favicon_base::FaviconRawBitmapCallback& callback, 121 const favicon_base::FaviconRawBitmapCallback& callback,
122 base::CancelableTaskTracker* tracker); 122 base::CancelableTaskTracker* tracker);
123 123
124 base::CancelableTaskTracker::TaskId GetFaviconForPageURL( 124 base::CancelableTaskTracker::TaskId GetFaviconForPageURL(
125 const GURL& page_url, 125 const GURL& page_url,
126 int icon_types, 126 int icon_types,
127 int desired_size_in_dip, 127 int desired_size_in_dip,
128 const favicon_base::FaviconResultsCallback& callback, 128 const favicon_base::FaviconResultsCallback& callback,
129 base::CancelableTaskTracker* tracker); 129 base::CancelableTaskTracker* tracker);
130 130
131 // Requests a generic large icon, not caring about which type.
132 base::CancelableTaskTracker::TaskId GetGenericLargeIconForPageURL(
133 const GURL& page_url,
134 int desired_size_in_pixel,
135 const favicon_base::FaviconRawBitmapCallback& callback,
136 base::CancelableTaskTracker* tracker);
137
131 // Set the favicon mappings to |page_url| for |icon_types| in the history 138 // Set the favicon mappings to |page_url| for |icon_types| in the history
132 // database. 139 // database.
133 // Sample |icon_urls|: 140 // Sample |icon_urls|:
134 // { ICON_URL1 -> TOUCH_ICON, known to the database, 141 // { ICON_URL1 -> TOUCH_ICON, known to the database,
135 // ICON_URL2 -> TOUCH_ICON, not known to the database, 142 // ICON_URL2 -> TOUCH_ICON, not known to the database,
136 // ICON_URL3 -> TOUCH_PRECOMPOSED_ICON, known to the database } 143 // ICON_URL3 -> TOUCH_PRECOMPOSED_ICON, known to the database }
137 // The new mappings are computed from |icon_urls| with these rules: 144 // The new mappings are computed from |icon_urls| with these rules:
138 // 1) Any urls in |icon_urls| which are not already known to the database are 145 // 1) Any urls in |icon_urls| which are not already known to the database are
139 // rejected. 146 // rejected.
140 // Sample new mappings to |page_url|: { ICON_URL1, ICON_URL3 } 147 // Sample new mappings to |page_url|: { ICON_URL1, ICON_URL3 }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 favicon_bitmap_results); 252 favicon_bitmap_results);
246 253
247 base::hash_set<MissingFaviconURLHash> missing_favicon_urls_; 254 base::hash_set<MissingFaviconURLHash> missing_favicon_urls_;
248 history::HistoryService* history_service_; 255 history::HistoryService* history_service_;
249 FaviconClient* favicon_client_; 256 FaviconClient* favicon_client_;
250 257
251 DISALLOW_COPY_AND_ASSIGN(FaviconService); 258 DISALLOW_COPY_AND_ASSIGN(FaviconService);
252 }; 259 };
253 260
254 #endif // COMPONENTS_FAVICON_CORE_BROWSER_FAVICON_SERVICE_H_ 261 #endif // COMPONENTS_FAVICON_CORE_BROWSER_FAVICON_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | components/favicon/core/browser/favicon_service.cc » ('j') | components/favicon/core/browser/favicon_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698