Chromium Code Reviews| 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_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 136 // be forwarded to the HistoryServiceObservers in the correct thread. | 136 // be forwarded to the HistoryServiceObservers in the correct thread. |
| 137 virtual void NotifyURLVisited(ui::PageTransition transition, | 137 virtual void NotifyURLVisited(ui::PageTransition transition, |
| 138 const URLRow& row, | 138 const URLRow& row, |
| 139 const RedirectList& redirects, | 139 const RedirectList& redirects, |
| 140 base::Time visit_time) = 0; | 140 base::Time visit_time) = 0; |
| 141 | 141 |
| 142 // Notify HistoryService that some URLs have been modified. The event will | 142 // Notify HistoryService that some URLs have been modified. The event will |
| 143 // be forwarded to the HistoryServiceObservers in the correct thread. | 143 // be forwarded to the HistoryServiceObservers in the correct thread. |
| 144 virtual void NotifyURLsModified(const URLRows& changed_urls) = 0; | 144 virtual void NotifyURLsModified(const URLRows& changed_urls) = 0; |
| 145 | 145 |
| 146 virtual void NotifyHistoryKeywordSearchTermUpdated( | |
|
sdefresne
2014/12/24 09:03:43
style: please comment this method
Abhishek
2014/12/24 19:39:41
Done.
| |
| 147 const URLRow& row, | |
| 148 KeywordID keyword_id, | |
| 149 const base::string16& term) = 0; | |
| 150 | |
| 146 // Broadcasts the specified notification to the notification service. | 151 // Broadcasts the specified notification to the notification service. |
| 147 // This is implemented here because notifications must only be sent from | 152 // This is implemented here because notifications must only be sent from |
| 148 // the main thread. This is the only method that doesn't identify the | 153 // the main thread. This is the only method that doesn't identify the |
| 149 // caller because notifications must always be sent. | 154 // caller because notifications must always be sent. |
| 150 virtual void BroadcastNotifications(int type, | 155 virtual void BroadcastNotifications(int type, |
| 151 scoped_ptr<HistoryDetails> details) = 0; | 156 scoped_ptr<HistoryDetails> details) = 0; |
| 152 | 157 |
| 153 // Invoked when the backend has finished loading the db. | 158 // Invoked when the backend has finished loading the db. |
| 154 virtual void DBLoaded() = 0; | 159 virtual void DBLoaded() = 0; |
| 155 }; | 160 }; |
| (...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 910 | 915 |
| 911 // List of observers | 916 // List of observers |
| 912 ObserverList<HistoryBackendObserver> observers_; | 917 ObserverList<HistoryBackendObserver> observers_; |
| 913 | 918 |
| 914 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 919 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 915 }; | 920 }; |
| 916 | 921 |
| 917 } // namespace history | 922 } // namespace history |
| 918 | 923 |
| 919 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 924 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| OLD | NEW |