OLD | NEW |
---|---|
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 CHROME_BROWSER_FAVICON_FAVICON_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_FAVICON_FAVICON_SERVICE_H_ |
6 #define CHROME_BROWSER_FAVICON_FAVICON_SERVICE_H_ | 6 #define CHROME_BROWSER_FAVICON_FAVICON_SERVICE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
165 const FaviconForURLParams& params, | 165 const FaviconForURLParams& params, |
166 const FaviconImageCallback& callback, | 166 const FaviconImageCallback& callback, |
167 CancelableTaskTracker* tracker); | 167 CancelableTaskTracker* tracker); |
168 | 168 |
169 CancelableTaskTracker::TaskId GetRawFaviconForURL( | 169 CancelableTaskTracker::TaskId GetRawFaviconForURL( |
170 const FaviconForURLParams& params, | 170 const FaviconForURLParams& params, |
171 ui::ScaleFactor desired_scale_factor, | 171 ui::ScaleFactor desired_scale_factor, |
172 const FaviconRawCallback& callback, | 172 const FaviconRawCallback& callback, |
173 CancelableTaskTracker* tracker); | 173 CancelableTaskTracker* tracker); |
174 | 174 |
175 // See HistoryService::GetLargestFaviconForURL. | |
pkotwicz
2013/10/18 01:29:35
Nit: See HistoryService::GetLargestFaviconForURL()
michaelbai
2013/10/18 04:37:02
Done.
| |
176 CancelableTaskTracker::TaskId GetLargestRawFaviconForURL( | |
177 Profile* profile, | |
178 const GURL& page_url, | |
179 const std::vector<int>& icon_types, | |
180 int minimum_size_in_pixels, | |
181 const FaviconRawCallback& callback, | |
182 CancelableTaskTracker* tracker); | |
183 | |
175 CancelableTaskTracker::TaskId GetFaviconForURL( | 184 CancelableTaskTracker::TaskId GetFaviconForURL( |
176 const FaviconForURLParams& params, | 185 const FaviconForURLParams& params, |
177 const FaviconResultsCallback& callback, | 186 const FaviconResultsCallback& callback, |
178 CancelableTaskTracker* tracker); | 187 CancelableTaskTracker* tracker); |
179 | 188 |
180 // Used to request a bitmap for the favicon with |favicon_id| which is not | 189 // Used to request a bitmap for the favicon with |favicon_id| which is not |
181 // resized from the size it is stored at in the database. If there are | 190 // resized from the size it is stored at in the database. If there are |
182 // multiple favicon bitmaps for |favicon_id|, the largest favicon bitmap is | 191 // multiple favicon bitmaps for |favicon_id|, the largest favicon bitmap is |
183 // returned. | 192 // returned. |
184 CancelableTaskTracker::TaskId GetLargestRawFaviconForID( | 193 CancelableTaskTracker::TaskId GetLargestRawFaviconForID( |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
261 void RunFaviconRawCallbackWithBitmapResults( | 270 void RunFaviconRawCallbackWithBitmapResults( |
262 const FaviconRawCallback& callback, | 271 const FaviconRawCallback& callback, |
263 int desired_size_in_dip, | 272 int desired_size_in_dip, |
264 ui::ScaleFactor desired_scale_factor, | 273 ui::ScaleFactor desired_scale_factor, |
265 const std::vector<chrome::FaviconBitmapResult>& favicon_bitmap_results); | 274 const std::vector<chrome::FaviconBitmapResult>& favicon_bitmap_results); |
266 | 275 |
267 DISALLOW_COPY_AND_ASSIGN(FaviconService); | 276 DISALLOW_COPY_AND_ASSIGN(FaviconService); |
268 }; | 277 }; |
269 | 278 |
270 #endif // CHROME_BROWSER_FAVICON_FAVICON_SERVICE_H_ | 279 #endif // CHROME_BROWSER_FAVICON_FAVICON_SERVICE_H_ |
OLD | NEW |