| 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_SERVICE_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ |
| 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 // favicon bitmap if it is present in the history backend. | 741 // favicon bitmap if it is present in the history backend. |
| 742 void SetFavicons(const GURL& page_url, | 742 void SetFavicons(const GURL& page_url, |
| 743 favicon_base::IconType icon_type, | 743 favicon_base::IconType icon_type, |
| 744 const GURL& icon_url, | 744 const GURL& icon_url, |
| 745 const std::vector<SkBitmap>& bitmaps); | 745 const std::vector<SkBitmap>& bitmaps); |
| 746 | 746 |
| 747 // Used by the FaviconService to mark the favicon for the page as being out | 747 // Used by the FaviconService to mark the favicon for the page as being out |
| 748 // of date. | 748 // of date. |
| 749 void SetFaviconsOutOfDateForPage(const GURL& page_url); | 749 void SetFaviconsOutOfDateForPage(const GURL& page_url); |
| 750 | 750 |
| 751 // Used by the FaviconService to clone favicons from one page to another, | |
| 752 // provided that other page does not already have favicons. | |
| 753 void CloneFavicons(const GURL& old_page_url, const GURL& new_page_url); | |
| 754 | |
| 755 // Used by the FaviconService for importing many favicons for many pages at | 751 // Used by the FaviconService for importing many favicons for many pages at |
| 756 // once. The pages must exist, any favicon sets for unknown pages will be | 752 // once. The pages must exist, any favicon sets for unknown pages will be |
| 757 // discarded. Existing favicons will not be overwritten. | 753 // discarded. Existing favicons will not be overwritten. |
| 758 void SetImportedFavicons( | 754 void SetImportedFavicons( |
| 759 const favicon_base::FaviconUsageDataList& favicon_usage); | 755 const favicon_base::FaviconUsageDataList& favicon_usage); |
| 760 | 756 |
| 761 // Sets the in-memory URL database. This is called by the backend once the | 757 // Sets the in-memory URL database. This is called by the backend once the |
| 762 // database is loaded to make it available. | 758 // database is loaded to make it available. |
| 763 void SetInMemoryBackend(scoped_ptr<InMemoryHistoryBackend> mem_backend); | 759 void SetInMemoryBackend(scoped_ptr<InMemoryHistoryBackend> mem_backend); |
| 764 | 760 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 | 808 |
| 813 // All vended weak pointers are invalidated in Cleanup(). | 809 // All vended weak pointers are invalidated in Cleanup(). |
| 814 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; | 810 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; |
| 815 | 811 |
| 816 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 812 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
| 817 }; | 813 }; |
| 818 | 814 |
| 819 } // namespace history | 815 } // namespace history |
| 820 | 816 |
| 821 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ | 817 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ |
| OLD | NEW |