| 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 COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
| 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 int icon_types, | 313 int icon_types, |
| 314 const std::vector<int>& desired_sizes, | 314 const std::vector<int>& desired_sizes, |
| 315 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results); | 315 std::vector<favicon_base::FaviconRawBitmapResult>* bitmap_results); |
| 316 | 316 |
| 317 void MergeFavicon(const GURL& page_url, | 317 void MergeFavicon(const GURL& page_url, |
| 318 const GURL& icon_url, | 318 const GURL& icon_url, |
| 319 favicon_base::IconType icon_type, | 319 favicon_base::IconType icon_type, |
| 320 scoped_refptr<base::RefCountedMemory> bitmap_data, | 320 scoped_refptr<base::RefCountedMemory> bitmap_data, |
| 321 const gfx::Size& pixel_size); | 321 const gfx::Size& pixel_size); |
| 322 | 322 |
| 323 void SetFavicons(const GURL& page_url, | 323 favicon_base::FaviconID SetFavicons(const GURL& page_url, |
| 324 favicon_base::IconType icon_type, | 324 favicon_base::IconType icon_type, |
| 325 const GURL& icon_url, | 325 const GURL& icon_url, |
| 326 const std::vector<SkBitmap>& bitmaps); | 326 const std::vector<SkBitmap>& bitmaps); |
| 327 |
| 328 void SetExpiredFaviconsIfNoneKnown(const GURL& page_url, |
| 329 favicon_base::IconType icon_type, |
| 330 const GURL& icon_url, |
| 331 const std::vector<SkBitmap>& bitmaps); |
| 327 | 332 |
| 328 void SetFaviconsOutOfDateForPage(const GURL& page_url); | 333 void SetFaviconsOutOfDateForPage(const GURL& page_url); |
| 329 | 334 |
| 330 void SetImportedFavicons( | 335 void SetImportedFavicons( |
| 331 const favicon_base::FaviconUsageDataList& favicon_usage); | 336 const favicon_base::FaviconUsageDataList& favicon_usage); |
| 332 | 337 |
| 333 // Downloads ----------------------------------------------------------------- | 338 // Downloads ----------------------------------------------------------------- |
| 334 | 339 |
| 335 uint32_t GetNextDownloadId(); | 340 uint32_t GetNextDownloadId(); |
| 336 void QueryDownloads(std::vector<DownloadRow>* rows); | 341 void QueryDownloads(std::vector<DownloadRow>* rows); |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 // Init is called. Defined after observers_ because it unregisters itself as | 895 // Init is called. Defined after observers_ because it unregisters itself as |
| 891 // observer during destruction. | 896 // observer during destruction. |
| 892 std::unique_ptr<TypedUrlSyncableService> typed_url_syncable_service_; | 897 std::unique_ptr<TypedUrlSyncableService> typed_url_syncable_service_; |
| 893 | 898 |
| 894 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 899 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 895 }; | 900 }; |
| 896 | 901 |
| 897 } // namespace history | 902 } // namespace history |
| 898 | 903 |
| 899 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 904 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
| OLD | NEW |