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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 // Used to request a bitmap for the favicon with |favicon_id| which is not | 157 // Used to request a bitmap for the favicon with |favicon_id| which is not |
158 // resized from the size it is stored at in the database. If there are | 158 // resized from the size it is stored at in the database. If there are |
159 // multiple favicon bitmaps for |favicon_id|, the largest favicon bitmap is | 159 // multiple favicon bitmaps for |favicon_id|, the largest favicon bitmap is |
160 // returned. | 160 // returned. |
161 base::CancelableTaskTracker::TaskId GetLargestRawFaviconForID( | 161 base::CancelableTaskTracker::TaskId GetLargestRawFaviconForID( |
162 favicon_base::FaviconID favicon_id, | 162 favicon_base::FaviconID favicon_id, |
163 const favicon_base::FaviconRawBitmapCallback& callback, | 163 const favicon_base::FaviconRawBitmapCallback& callback, |
164 base::CancelableTaskTracker* tracker); | 164 base::CancelableTaskTracker* tracker); |
165 | 165 |
| 166 |
| 167 |
| 168 |
| 169 base::CancelableTaskTracker::TaskId HackGetBigIcon( |
| 170 const GURL& page_url, |
| 171 int desired_size_in_pixel, |
| 172 const favicon_base::FaviconRawBitmapCallback& callback, |
| 173 base::CancelableTaskTracker* tracker); |
| 174 |
| 175 |
| 176 |
| 177 |
| 178 |
166 // Marks all types of favicon for the page as being out of date. | 179 // Marks all types of favicon for the page as being out of date. |
167 void SetFaviconOutOfDateForPage(const GURL& page_url); | 180 void SetFaviconOutOfDateForPage(const GURL& page_url); |
168 | 181 |
169 // Clones all icons from an existing page. This associates the icons from | 182 // Clones all icons from an existing page. This associates the icons from |
170 // |old_page_url| with |new_page_url|, provided |new_page_url| has no | 183 // |old_page_url| with |new_page_url|, provided |new_page_url| has no |
171 // recorded associations to any other icons. | 184 // recorded associations to any other icons. |
172 // Needed if you want to declare favicons (tentatively) in advance, before a | 185 // Needed if you want to declare favicons (tentatively) in advance, before a |
173 // page is ever visited. | 186 // page is ever visited. |
174 void CloneFavicon(const GURL& old_page_url, const GURL& new_page_url); | 187 void CloneFavicon(const GURL& old_page_url, const GURL& new_page_url); |
175 | 188 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 void RunFaviconRawBitmapCallbackWithBitmapResults( | 256 void RunFaviconRawBitmapCallbackWithBitmapResults( |
244 const favicon_base::FaviconRawBitmapCallback& callback, | 257 const favicon_base::FaviconRawBitmapCallback& callback, |
245 int desired_size_in_pixel, | 258 int desired_size_in_pixel, |
246 const std::vector<favicon_base::FaviconRawBitmapResult>& | 259 const std::vector<favicon_base::FaviconRawBitmapResult>& |
247 favicon_bitmap_results); | 260 favicon_bitmap_results); |
248 | 261 |
249 DISALLOW_COPY_AND_ASSIGN(FaviconService); | 262 DISALLOW_COPY_AND_ASSIGN(FaviconService); |
250 }; | 263 }; |
251 | 264 |
252 #endif // CHROME_BROWSER_FAVICON_FAVICON_SERVICE_H_ | 265 #endif // CHROME_BROWSER_FAVICON_FAVICON_SERVICE_H_ |
OLD | NEW |