| 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_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
| 6 #define CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 void SetFaviconsOutOfDateForPage(const GURL& page_url); | 820 void SetFaviconsOutOfDateForPage(const GURL& page_url); |
| 821 | 821 |
| 822 // Used by the FaviconService to clone favicons from one page to another, | 822 // Used by the FaviconService to clone favicons from one page to another, |
| 823 // provided that other page does not already have favicons. | 823 // provided that other page does not already have favicons. |
| 824 void CloneFavicons(const GURL& old_page_url, const GURL& new_page_url); | 824 void CloneFavicons(const GURL& old_page_url, const GURL& new_page_url); |
| 825 | 825 |
| 826 // Used by the FaviconService for importing many favicons for many pages at | 826 // Used by the FaviconService for importing many favicons for many pages at |
| 827 // once. The pages must exist, any favicon sets for unknown pages will be | 827 // once. The pages must exist, any favicon sets for unknown pages will be |
| 828 // discarded. Existing favicons will not be overwritten. | 828 // discarded. Existing favicons will not be overwritten. |
| 829 void SetImportedFavicons( | 829 void SetImportedFavicons( |
| 830 const std::vector<history::ImportedFaviconUsage>& favicon_usage); | 830 const std::vector<ImportedFaviconUsage>& favicon_usage); |
| 831 | 831 |
| 832 // Sets the in-memory URL database. This is called by the backend once the | 832 // Sets the in-memory URL database. This is called by the backend once the |
| 833 // database is loaded to make it available. | 833 // database is loaded to make it available. |
| 834 void SetInMemoryBackend(int backend_id, | 834 void SetInMemoryBackend(int backend_id, |
| 835 history::InMemoryHistoryBackend* mem_backend); | 835 history::InMemoryHistoryBackend* mem_backend); |
| 836 | 836 |
| 837 // Called by our BackendDelegate when there is a problem reading the database. | 837 // Called by our BackendDelegate when there is a problem reading the database. |
| 838 void NotifyProfileError(int backend_id, sql::InitStatus init_status); | 838 void NotifyProfileError(int backend_id, sql::InitStatus init_status); |
| 839 | 839 |
| 840 // Call to schedule a given task for running on the history thread with the | 840 // Call to schedule a given task for running on the history thread with the |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1092 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; | 1092 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; |
| 1093 | 1093 |
| 1094 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; | 1094 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; |
| 1095 | 1095 |
| 1096 history::DeleteDirectiveHandler delete_directive_handler_; | 1096 history::DeleteDirectiveHandler delete_directive_handler_; |
| 1097 | 1097 |
| 1098 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 1098 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
| 1099 }; | 1099 }; |
| 1100 | 1100 |
| 1101 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ | 1101 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
| OLD | NEW |