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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 scoped_refptr<base::RefCountedMemory> bitmap_data, | 293 scoped_refptr<base::RefCountedMemory> bitmap_data, |
294 const gfx::Size& pixel_size); | 294 const gfx::Size& pixel_size); |
295 | 295 |
296 void SetFavicons(const GURL& page_url, | 296 void SetFavicons(const GURL& page_url, |
297 favicon_base::IconType icon_type, | 297 favicon_base::IconType icon_type, |
298 const GURL& icon_url, | 298 const GURL& icon_url, |
299 const std::vector<SkBitmap>& bitmaps); | 299 const std::vector<SkBitmap>& bitmaps); |
300 | 300 |
301 void SetFaviconsOutOfDateForPage(const GURL& page_url); | 301 void SetFaviconsOutOfDateForPage(const GURL& page_url); |
302 | 302 |
303 void CloneFavicons(const GURL& old_page_url, const GURL& new_page_url); | |
304 | |
305 void SetImportedFavicons( | 303 void SetImportedFavicons( |
306 const favicon_base::FaviconUsageDataList& favicon_usage); | 304 const favicon_base::FaviconUsageDataList& favicon_usage); |
307 | 305 |
308 // Downloads ----------------------------------------------------------------- | 306 // Downloads ----------------------------------------------------------------- |
309 | 307 |
310 uint32 GetNextDownloadId(); | 308 uint32 GetNextDownloadId(); |
311 void QueryDownloads(std::vector<DownloadRow>* rows); | 309 void QueryDownloads(std::vector<DownloadRow>* rows); |
312 void UpdateDownload(const DownloadRow& data); | 310 void UpdateDownload(const DownloadRow& data); |
313 bool CreateDownload(const DownloadRow& history_info); | 311 bool CreateDownload(const DownloadRow& history_info); |
314 void RemoveDownloads(const std::set<uint32>& ids); | 312 void RemoveDownloads(const std::set<uint32>& ids); |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 UpdateFaviconMappingsAndFetchMultipleIconTypes); | 496 UpdateFaviconMappingsAndFetchMultipleIconTypes); |
499 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, GetFaviconsFromDBEmpty); | 497 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, GetFaviconsFromDBEmpty); |
500 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, | 498 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, |
501 GetFaviconsFromDBNoFaviconBitmaps); | 499 GetFaviconsFromDBNoFaviconBitmaps); |
502 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, | 500 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, |
503 GetFaviconsFromDBSelectClosestMatch); | 501 GetFaviconsFromDBSelectClosestMatch); |
504 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, GetFaviconsFromDBIconType); | 502 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, GetFaviconsFromDBIconType); |
505 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, GetFaviconsFromDBExpired); | 503 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, GetFaviconsFromDBExpired); |
506 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, | 504 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, |
507 UpdateFaviconMappingsAndFetchNoDB); | 505 UpdateFaviconMappingsAndFetchNoDB); |
508 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, | |
509 CloneFaviconIsRestrictedToSameDomain); | |
510 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, QueryFilteredURLs); | 506 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, QueryFilteredURLs); |
511 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, UpdateVisitDuration); | 507 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, UpdateVisitDuration); |
512 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, ExpireHistoryForTimes); | 508 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, ExpireHistoryForTimes); |
513 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, DeleteFTSIndexDatabases); | 509 FRIEND_TEST_ALL_PREFIXES(HistoryBackendTest, DeleteFTSIndexDatabases); |
514 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTypedUrlTest, | 510 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTypedUrlTest, |
515 ProcessUserChangeRemove); | 511 ProcessUserChangeRemove); |
516 friend class ::TestingProfile; | 512 friend class ::TestingProfile; |
517 | 513 |
518 // Computes the name of the specified database on disk. | 514 // Computes the name of the specified database on disk. |
519 base::FilePath GetArchivedFileName() const; | 515 base::FilePath GetArchivedFileName() const; |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 | 821 |
826 // List of observers | 822 // List of observers |
827 ObserverList<HistoryBackendObserver> observers_; | 823 ObserverList<HistoryBackendObserver> observers_; |
828 | 824 |
829 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 825 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
830 }; | 826 }; |
831 | 827 |
832 } // namespace history | 828 } // namespace history |
833 | 829 |
834 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ | 830 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_BACKEND_H_ |
OLD | NEW |