| 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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 // Sets the in-memory URL database. This is called by the backend once the | 794 // Sets the in-memory URL database. This is called by the backend once the |
| 795 // database is loaded to make it available. | 795 // database is loaded to make it available. |
| 796 void SetInMemoryBackend(std::unique_ptr<InMemoryHistoryBackend> mem_backend); | 796 void SetInMemoryBackend(std::unique_ptr<InMemoryHistoryBackend> mem_backend); |
| 797 | 797 |
| 798 // Called by our BackendDelegate when there is a problem reading the database. | 798 // Called by our BackendDelegate when there is a problem reading the database. |
| 799 void NotifyProfileError(sql::InitStatus init_status, | 799 void NotifyProfileError(sql::InitStatus init_status, |
| 800 const std::string& diagnostics); | 800 const std::string& diagnostics); |
| 801 | 801 |
| 802 // Call to schedule a given task for running on the history thread with the | 802 // Call to schedule a given task for running on the history thread with the |
| 803 // specified priority. The task will have ownership taken. | 803 // specified priority. The task will have ownership taken. |
| 804 void ScheduleTask(SchedulePriority priority, base::Closure task); | 804 void ScheduleTask(SchedulePriority priority, base::OnceClosure task); |
| 805 | 805 |
| 806 // Called when the favicons for the given page URLs (e.g. | 806 // Called when the favicons for the given page URLs (e.g. |
| 807 // http://www.google.com) and the given icon URL (e.g. | 807 // http://www.google.com) and the given icon URL (e.g. |
| 808 // http://www.google.com/favicon.ico) have changed. It is valid to call | 808 // http://www.google.com/favicon.ico) have changed. It is valid to call |
| 809 // NotifyFaviconsChanged() with non-empty |page_urls| and an empty |icon_url| | 809 // NotifyFaviconsChanged() with non-empty |page_urls| and an empty |icon_url| |
| 810 // and vice versa. | 810 // and vice versa. |
| 811 void NotifyFaviconsChanged(const std::set<GURL>& page_urls, | 811 void NotifyFaviconsChanged(const std::set<GURL>& page_urls, |
| 812 const GURL& icon_url); | 812 const GURL& icon_url); |
| 813 | 813 |
| 814 base::ThreadChecker thread_checker_; | 814 base::ThreadChecker thread_checker_; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 | 856 |
| 857 // All vended weak pointers are invalidated in Cleanup(). | 857 // All vended weak pointers are invalidated in Cleanup(). |
| 858 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; | 858 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; |
| 859 | 859 |
| 860 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 860 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
| 861 }; | 861 }; |
| 862 | 862 |
| 863 } // namespace history | 863 } // namespace history |
| 864 | 864 |
| 865 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ | 865 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ |
| OLD | NEW |