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_HISTORY_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 // | 643 // |
644 // The IDs of the URLs may change. | 644 // The IDs of the URLs may change. |
645 bool ClearAllMainHistory(const URLRows& kept_urls); | 645 bool ClearAllMainHistory(const URLRows& kept_urls); |
646 | 646 |
647 // Returns the BookmarkService, blocking until it is loaded. This may return | 647 // Returns the BookmarkService, blocking until it is loaded. This may return |
648 // NULL during testing. | 648 // NULL during testing. |
649 BookmarkService* GetBookmarkService(); | 649 BookmarkService* GetBookmarkService(); |
650 | 650 |
651 // If there is a favicon for |page_url| and one of the types in |icon_types|, | 651 // If there is a favicon for |page_url| and one of the types in |icon_types|, |
652 // |favicon| is set appropriately and true is returned. | 652 // |favicon| is set appropriately and true is returned. |
653 bool GetFaviconFromDB(const GURL& page_url, | 653 bool GetFaviconFromDB( |
654 int icon_types, | 654 const GURL& page_url, |
655 FaviconData* favicon); | 655 int icon_types, |
| 656 std::vector<FaviconBitmapResult>* favicon_bitmap_results); |
656 | 657 |
657 // Get favicon by the given |favicon_id|, the |favicon| is set appropriately | 658 // Get favicon by the given |favicon_id|, the |favicon| is set appropriately |
658 // and true if returned on success, otherwise false is returned. | 659 // and true if returned on success, otherwise false is returned. |
659 bool GetFaviconFromDB(FaviconID favicon_id, FaviconData* favicon); | 660 bool GetFaviconFromDB( |
| 661 FaviconID favicon_id, |
| 662 std::vector<FaviconBitmapResult>* favicon_bitmap_results); |
660 | 663 |
661 // Notify any observers of an addition to the visit database. | 664 // Notify any observers of an addition to the visit database. |
662 void NotifyVisitObservers(const VisitRow& visit); | 665 void NotifyVisitObservers(const VisitRow& visit); |
663 | 666 |
664 // Data ---------------------------------------------------------------------- | 667 // Data ---------------------------------------------------------------------- |
665 | 668 |
666 // Delegate. See the class definition above for more information. This will | 669 // Delegate. See the class definition above for more information. This will |
667 // be NULL before Init is called and after Cleanup, but is guaranteed | 670 // be NULL before Init is called and after Cleanup, but is guaranteed |
668 // non-NULL in between. | 671 // non-NULL in between. |
669 scoped_ptr<Delegate> delegate_; | 672 scoped_ptr<Delegate> delegate_; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 // Used to provide the Android ContentProvider APIs. | 759 // Used to provide the Android ContentProvider APIs. |
757 scoped_ptr<AndroidProviderBackend> android_provider_backend_; | 760 scoped_ptr<AndroidProviderBackend> android_provider_backend_; |
758 #endif | 761 #endif |
759 | 762 |
760 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 763 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
761 }; | 764 }; |
762 | 765 |
763 } // namespace history | 766 } // namespace history |
764 | 767 |
765 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 768 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
OLD | NEW |