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