| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_H_ |
| 6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 | 659 |
| 660 // Used by the FaviconService to get a favicon from the history backend. | 660 // Used by the FaviconService to get a favicon from the history backend. |
| 661 void GetFaviconForURL(FaviconService::GetFaviconRequest* request, | 661 void GetFaviconForURL(FaviconService::GetFaviconRequest* request, |
| 662 const GURL& page_url, | 662 const GURL& page_url, |
| 663 int icon_types); | 663 int icon_types); |
| 664 | 664 |
| 665 // Used by the FaviconService to mark the favicon for the page as being out | 665 // Used by the FaviconService to mark the favicon for the page as being out |
| 666 // of date. | 666 // of date. |
| 667 void SetFaviconOutOfDateForPage(const GURL& page_url); | 667 void SetFaviconOutOfDateForPage(const GURL& page_url); |
| 668 | 668 |
| 669 // Used by the FaviconService to clone favicons from one page to another, |
| 670 // provided that other page does not already have favicons. |
| 671 void CloneFavicon(const GURL& old_page_url, const GURL& new_page_url); |
| 672 |
| 669 // Used by the FaviconService for importing many favicons for many pages at | 673 // Used by the FaviconService for importing many favicons for many pages at |
| 670 // once. The pages must exist, any favicon sets for unknown pages will be | 674 // once. The pages must exist, any favicon sets for unknown pages will be |
| 671 // discarded. Existing favicons will not be overwritten. | 675 // discarded. Existing favicons will not be overwritten. |
| 672 void SetImportedFavicons( | 676 void SetImportedFavicons( |
| 673 const std::vector<history::ImportedFaviconUsage>& favicon_usage); | 677 const std::vector<history::ImportedFaviconUsage>& favicon_usage); |
| 674 | 678 |
| 675 // Used by the FaviconService to set the favicon for a page on the history | 679 // Used by the FaviconService to set the favicon for a page on the history |
| 676 // backend. | 680 // backend. |
| 677 void SetFavicon(const GURL& page_url, | 681 void SetFavicon(const GURL& page_url, |
| 678 const GURL& icon_url, | 682 const GURL& icon_url, |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 BookmarkService* bookmark_service_; | 874 BookmarkService* bookmark_service_; |
| 871 bool no_db_; | 875 bool no_db_; |
| 872 | 876 |
| 873 // True if needs top site migration. | 877 // True if needs top site migration. |
| 874 bool needs_top_sites_migration_; | 878 bool needs_top_sites_migration_; |
| 875 | 879 |
| 876 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 880 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
| 877 }; | 881 }; |
| 878 | 882 |
| 879 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ | 883 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ |
| OLD | NEW |