| 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_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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 virtual void NavigateToPendingEntry( | 80 virtual void NavigateToPendingEntry( |
| 81 const GURL& url, | 81 const GURL& url, |
| 82 content::NavigationController::ReloadType reload_type) OVERRIDE; | 82 content::NavigationController::ReloadType reload_type) OVERRIDE; |
| 83 virtual void DidNavigateMainFrame( | 83 virtual void DidNavigateMainFrame( |
| 84 const content::LoadCommittedDetails& details, | 84 const content::LoadCommittedDetails& details, |
| 85 const content::FrameNavigateParams& params) OVERRIDE; | 85 const content::FrameNavigateParams& params) OVERRIDE; |
| 86 | 86 |
| 87 // Favicon download callback. | 87 // Favicon download callback. |
| 88 void DidDownloadFavicon( | 88 void DidDownloadFavicon( |
| 89 int id, | 89 int id, |
| 90 int http_status_code, |
| 90 const GURL& image_url, | 91 const GURL& image_url, |
| 91 int requested_size, | 92 int requested_size, |
| 92 const std::vector<SkBitmap>& bitmaps); | 93 const std::vector<SkBitmap>& bitmaps); |
| 93 | 94 |
| 94 Profile* profile_; | 95 Profile* profile_; |
| 95 bool should_fetch_icons_; | 96 bool should_fetch_icons_; |
| 96 | 97 |
| 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 |