| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_HISTORY_THUMBNAIL_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_THUMBNAIL_DATABASE_H_ |
| 6 #define CHROME_BROWSER_HISTORY_THUMBNAIL_DATABASE_H_ | 6 #define CHROME_BROWSER_HISTORY_THUMBNAIL_DATABASE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 scoped_refptr<RefCountedMemory> icon_data, | 102 scoped_refptr<RefCountedMemory> icon_data, |
| 103 base::Time time); | 103 base::Time time); |
| 104 | 104 |
| 105 // Sets the time the favicon was last updated. | 105 // Sets the time the favicon was last updated. |
| 106 bool SetFaviconLastUpdateTime(FavIconID icon_id, base::Time time); | 106 bool SetFaviconLastUpdateTime(FavIconID icon_id, base::Time time); |
| 107 | 107 |
| 108 // Returns the id of the entry in the favicon database with the specified url | 108 // Returns the id of the entry in the favicon database with the specified url |
| 109 // and icon type. If |required_icon_type| contains multiple icon types and | 109 // and icon type. If |required_icon_type| contains multiple icon types and |
| 110 // there are more than one matched icon in database, only one icon will be | 110 // there are more than one matched icon in database, only one icon will be |
| 111 // returned in the priority of TOUCH_PRECOMPOSED_ICON, TOUCH_ICON, and | 111 // returned in the priority of TOUCH_PRECOMPOSED_ICON, TOUCH_ICON, and |
| 112 // FAV_ICON, and the icon type is returned in icon_type parameter if it is not | 112 // FAVICON, and the icon type is returned in icon_type parameter if it is not |
| 113 // NULL. | 113 // NULL. |
| 114 // Returns 0 if no entry exists for the specified url. | 114 // Returns 0 if no entry exists for the specified url. |
| 115 FavIconID GetFavIconIDForFavIconURL(const GURL& icon_url, | 115 FavIconID GetFavIconIDForFavIconURL(const GURL& icon_url, |
| 116 int required_icon_type, | 116 int required_icon_type, |
| 117 IconType* icon_type); | 117 IconType* icon_type); |
| 118 | 118 |
| 119 // Gets the png encoded favicon and last updated time for the specified | 119 // Gets the png encoded favicon and last updated time for the specified |
| 120 // favicon id. | 120 // favicon id. |
| 121 bool GetFavicon(FavIconID icon_id, | 121 bool GetFavicon(FavIconID icon_id, |
| 122 base::Time* last_updated, | 122 base::Time* last_updated, |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 const HistoryPublisher* history_publisher_; | 280 const HistoryPublisher* history_publisher_; |
| 281 | 281 |
| 282 // True if migration to TopSites has been done and the thumbnails | 282 // True if migration to TopSites has been done and the thumbnails |
| 283 // table should not be used. | 283 // table should not be used. |
| 284 bool use_top_sites_; | 284 bool use_top_sites_; |
| 285 }; | 285 }; |
| 286 | 286 |
| 287 } // namespace history | 287 } // namespace history |
| 288 | 288 |
| 289 #endif // CHROME_BROWSER_HISTORY_THUMBNAIL_DATABASE_H_ | 289 #endif // CHROME_BROWSER_HISTORY_THUMBNAIL_DATABASE_H_ |
| OLD | NEW |