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