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