OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_FAVICON_FAVICON_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_FAVICON_FAVICON_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_FAVICON_FAVICON_TAB_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <vector> |
| 10 |
9 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
10 #include "base/callback_old.h" | 12 #include "base/callback_old.h" |
11 #include "chrome/browser/favicon/favicon_handler_delegate.h" | 13 #include "chrome/browser/favicon/favicon_handler_delegate.h" |
12 #include "chrome/browser/favicon/favicon_service.h" | 14 #include "chrome/browser/favicon/favicon_service.h" |
13 #include "chrome/common/favicon_url.h" | 15 #include "chrome/common/favicon_url.h" |
14 #include "content/browser/tab_contents/tab_contents_observer.h" | 16 #include "content/browser/tab_contents/tab_contents_observer.h" |
15 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
16 | 18 |
17 class FaviconHandler; | 19 class FaviconHandler; |
18 class NavigationEntry; | 20 class NavigationEntry; |
19 class RefCountedMemory; | |
20 class SkBitmap; | 21 class SkBitmap; |
21 class TabContents; | 22 class TabContents; |
22 | 23 |
23 // FaviconTabHelper works with FaviconHandlers to fetch the favicons. | 24 // FaviconTabHelper works with FaviconHandlers to fetch the favicons. |
24 // | 25 // |
25 // FetchFavicon fetches the given page's icons. It requests the icons from the | 26 // FetchFavicon fetches the given page's icons. It requests the icons from the |
26 // history backend. If the icon is not available or expired, the icon will be | 27 // history backend. If the icon is not available or expired, the icon will be |
27 // downloaded and saved in the history backend. | 28 // downloaded and saved in the history backend. |
28 // | 29 // |
29 // DownloadImage downloads the specified icon and returns it through the given | 30 // DownloadImage downloads the specified icon and returns it through the given |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 scoped_ptr<FaviconHandler> favicon_handler_; | 98 scoped_ptr<FaviconHandler> favicon_handler_; |
98 | 99 |
99 // Handles downloading touchicons. It is NULL if | 100 // Handles downloading touchicons. It is NULL if |
100 // browser_defaults::kEnableTouchIcon is false. | 101 // browser_defaults::kEnableTouchIcon is false. |
101 scoped_ptr<FaviconHandler> touch_icon_handler_; | 102 scoped_ptr<FaviconHandler> touch_icon_handler_; |
102 | 103 |
103 DISALLOW_COPY_AND_ASSIGN(FaviconTabHelper); | 104 DISALLOW_COPY_AND_ASSIGN(FaviconTabHelper); |
104 }; | 105 }; |
105 | 106 |
106 #endif // CHROME_BROWSER_FAVICON_FAVICON_TAB_HELPER_H_ | 107 #endif // CHROME_BROWSER_FAVICON_FAVICON_TAB_HELPER_H_ |
OLD | NEW |