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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 // Sets the in-memory URL database. This is called by the backend once the | 774 // Sets the in-memory URL database. This is called by the backend once the |
775 // database is loaded to make it available. | 775 // database is loaded to make it available. |
776 void SetInMemoryBackend(std::unique_ptr<InMemoryHistoryBackend> mem_backend); | 776 void SetInMemoryBackend(std::unique_ptr<InMemoryHistoryBackend> mem_backend); |
777 | 777 |
778 // Called by our BackendDelegate when there is a problem reading the database. | 778 // Called by our BackendDelegate when there is a problem reading the database. |
779 void NotifyProfileError(sql::InitStatus init_status, | 779 void NotifyProfileError(sql::InitStatus init_status, |
780 const std::string& diagnostics); | 780 const std::string& diagnostics); |
781 | 781 |
782 // Call to schedule a given task for running on the history thread with the | 782 // Call to schedule a given task for running on the history thread with the |
783 // specified priority. The task will have ownership taken. | 783 // specified priority. The task will have ownership taken. |
784 void ScheduleTask(SchedulePriority priority, const base::Closure& task); | 784 void ScheduleTask(SchedulePriority priority, base::Closure task); |
785 | 785 |
786 // Called when the favicons for the given page URLs (e.g. | 786 // Called when the favicons for the given page URLs (e.g. |
787 // http://www.google.com) and the given icon URL (e.g. | 787 // 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 | 788 // 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| | 789 // NotifyFaviconsChanged() with non-empty |page_urls| and an empty |icon_url| |
790 // and vice versa. | 790 // and vice versa. |
791 void NotifyFaviconsChanged(const std::set<GURL>& page_urls, | 791 void NotifyFaviconsChanged(const std::set<GURL>& page_urls, |
792 const GURL& icon_url); | 792 const GURL& icon_url); |
793 | 793 |
794 base::ThreadChecker thread_checker_; | 794 base::ThreadChecker thread_checker_; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 | 836 |
837 // All vended weak pointers are invalidated in Cleanup(). | 837 // All vended weak pointers are invalidated in Cleanup(). |
838 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; | 838 base::WeakPtrFactory<HistoryService> weak_ptr_factory_; |
839 | 839 |
840 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 840 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
841 }; | 841 }; |
842 | 842 |
843 } // namespace history | 843 } // namespace history |
844 | 844 |
845 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ | 845 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_SERVICE_H_ |
OLD | NEW |