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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 // once. The pages must exist, any favicon sets for unknown pages will be | 770 // once. The pages must exist, any favicon sets for unknown pages will be |
771 // discarded. Existing favicons will not be overwritten. | 771 // discarded. Existing favicons will not be overwritten. |
772 void SetImportedFavicons( | 772 void SetImportedFavicons( |
773 const favicon_base::FaviconUsageDataList& favicon_usage); | 773 const favicon_base::FaviconUsageDataList& favicon_usage); |
774 | 774 |
775 // Sets the in-memory URL database. This is called by the backend once the | 775 // Sets the in-memory URL database. This is called by the backend once the |
776 // database is loaded to make it available. | 776 // database is loaded to make it available. |
777 void SetInMemoryBackend(std::unique_ptr<InMemoryHistoryBackend> mem_backend); | 777 void SetInMemoryBackend(std::unique_ptr<InMemoryHistoryBackend> mem_backend); |
778 | 778 |
779 // Called by our BackendDelegate when there is a problem reading the database. | 779 // Called by our BackendDelegate when there is a problem reading the database. |
780 void NotifyProfileError(sql::InitStatus init_status); | 780 void NotifyProfileError(sql::InitStatus init_status, |
| 781 const std::string& diagnostics); |
781 | 782 |
782 // Call to schedule a given task for running on the history thread with the | 783 // Call to schedule a given task for running on the history thread with the |
783 // specified priority. The task will have ownership taken. | 784 // specified priority. The task will have ownership taken. |
784 void ScheduleTask(SchedulePriority priority, const base::Closure& task); | 785 void ScheduleTask(SchedulePriority priority, const base::Closure& task); |
785 | 786 |
786 // Called when the favicons for the given page URLs (e.g. | 787 // Called when the favicons for the given page URLs (e.g. |
787 // http://www.google.com) and the given icon URL (e.g. | 788 // http://www.google.com) and the given icon URL (e.g. |
788 // http://www.google.com/favicon.ico) have changed. It is valid to call | 789 // http://www.google.com/favicon.ico) have changed. It is valid to call |
789 // NotifyFaviconsChanged() with non-empty |page_urls| and an empty |icon_url| | 790 // NotifyFaviconsChanged() with non-empty |page_urls| and an empty |icon_url| |
790 // and vice versa. | 791 // and vice versa. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 | 831 |
831 // All vended weak pointers are invalidated in Cleanup(). | 832 // All vended weak pointers are invalidated in Cleanup(). |
832 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; | 833 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; |
833 | 834 |
834 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 835 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
835 }; | 836 }; |
836 | 837 |
837 } // namespace history | 838 } // namespace history |
838 | 839 |
839 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ | 840 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ |
OLD | NEW |