| 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_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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 FaviconID GetFaviconIDForFaviconURL(const GURL& icon_url, | 142 FaviconID GetFaviconIDForFaviconURL(const GURL& icon_url, |
| 143 int required_icon_type, | 143 int required_icon_type, |
| 144 IconType* icon_type); | 144 IconType* icon_type); |
| 145 | 145 |
| 146 // Gets the icon_url, icon_type and sizes for the specified |icon_id|. | 146 // Gets the icon_url, icon_type and sizes for the specified |icon_id|. |
| 147 bool GetFaviconHeader(FaviconID icon_id, | 147 bool GetFaviconHeader(FaviconID icon_id, |
| 148 GURL* icon_url, | 148 GURL* icon_url, |
| 149 IconType* icon_type, | 149 IconType* icon_type, |
| 150 FaviconSizes* favicon_sizes); | 150 FaviconSizes* favicon_sizes); |
| 151 | 151 |
| 152 // Adds favicon with |icon_url| and |icon_type| to the favicon db, returning | 152 // Adds favicon with |icon_url|, |icon_type| and |favicon_sizes| to the |
| 153 // its id. | 153 // favicon db, returning its id. |
| 154 FaviconID AddFavicon(const GURL& icon_url, IconType icon_type); | 154 FaviconID AddFavicon(const GURL& icon_url, |
| 155 IconType icon_type, |
| 156 const FaviconSizes& favicon_sizes); |
| 155 | 157 |
| 156 // Adds a favicon with a single bitmap. This call is equivalent to calling | 158 // Adds a favicon with a single bitmap. This call is equivalent to calling |
| 157 // AddFavicon, SetFaviconSizes, and AddFaviconBitmap. | 159 // AddFavicon and AddFaviconBitmap. |
| 158 FaviconID AddFavicon(const GURL& icon_url, | 160 FaviconID AddFavicon(const GURL& icon_url, |
| 159 IconType icon_type, | 161 IconType icon_type, |
| 160 const FaviconSizes& favicon_sizes, | 162 const FaviconSizes& favicon_sizes, |
| 161 const scoped_refptr<base::RefCountedMemory>& icon_data, | 163 const scoped_refptr<base::RefCountedMemory>& icon_data, |
| 162 base::Time time, | 164 base::Time time, |
| 163 const gfx::Size& pixel_size); | 165 const gfx::Size& pixel_size); |
| 164 | 166 |
| 165 // Delete the favicon with the provided id. Returns false on failure | 167 // Delete the favicon with the provided id. Returns false on failure |
| 166 bool DeleteFavicon(FaviconID id); | 168 bool DeleteFavicon(FaviconID id); |
| 167 | 169 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 const HistoryPublisher* history_publisher_; | 385 const HistoryPublisher* history_publisher_; |
| 384 | 386 |
| 385 // True if migration to TopSites has been done and the thumbnails | 387 // True if migration to TopSites has been done and the thumbnails |
| 386 // table should not be used. | 388 // table should not be used. |
| 387 bool use_top_sites_; | 389 bool use_top_sites_; |
| 388 }; | 390 }; |
| 389 | 391 |
| 390 } // namespace history | 392 } // namespace history |
| 391 | 393 |
| 392 #endif // CHROME_BROWSER_HISTORY_THUMBNAIL_DATABASE_H_ | 394 #endif // CHROME_BROWSER_HISTORY_THUMBNAIL_DATABASE_H_ |
| OLD | NEW |