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_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_FAVICON_FAVICON_HANDLER_H_ |
6 #define CHROME_BROWSER_FAVICON_FAVICON_HANDLER_H_ | 6 #define CHROME_BROWSER_FAVICON_FAVICON_HANDLER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/task/cancelable_task_tracker.h" | 15 #include "base/task/cancelable_task_tracker.h" |
16 #include "chrome/browser/favicon/favicon_tab_helper.h" | |
17 #include "components/favicon/core/favicon_url.h" | 16 #include "components/favicon/core/favicon_url.h" |
18 #include "components/favicon_base/favicon_callback.h" | 17 #include "components/favicon_base/favicon_callback.h" |
19 #include "ui/gfx/favicon_size.h" | 18 #include "ui/gfx/favicon_size.h" |
20 #include "ui/gfx/image/image.h" | 19 #include "ui/gfx/image/image.h" |
21 #include "url/gurl.h" | 20 #include "url/gurl.h" |
22 | 21 |
23 class FaviconClient; | 22 class FaviconClient; |
24 class FaviconDriver; | 23 class FaviconDriver; |
25 class SkBitmap; | 24 class SkBitmap; |
26 | 25 |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 // Best image we've seen so far. As images are downloaded from the page they | 288 // Best image we've seen so far. As images are downloaded from the page they |
290 // are stored here. When there is an exact match, or no more images are | 289 // are stored here. When there is an exact match, or no more images are |
291 // available the favicon service and the current page are updated (assuming | 290 // available the favicon service and the current page are updated (assuming |
292 // the image is for a favicon). | 291 // the image is for a favicon). |
293 FaviconCandidate best_favicon_candidate_; | 292 FaviconCandidate best_favicon_candidate_; |
294 | 293 |
295 DISALLOW_COPY_AND_ASSIGN(FaviconHandler); | 294 DISALLOW_COPY_AND_ASSIGN(FaviconHandler); |
296 }; | 295 }; |
297 | 296 |
298 #endif // CHROME_BROWSER_FAVICON_FAVICON_HANDLER_H_ | 297 #endif // CHROME_BROWSER_FAVICON_FAVICON_HANDLER_H_ |
OLD | NEW |