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_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ |
6 #define CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ | 6 #define CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ |
7 | 7 |
8 #include "base/android/jni_weak_ref.h" | 8 #include "base/android/jni_weak_ref.h" |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 // Override bookmarks::BaseBookmarkModelObserver. | 180 // Override bookmarks::BaseBookmarkModelObserver. |
181 virtual void BookmarkModelChanged() override; | 181 virtual void BookmarkModelChanged() override; |
182 virtual void ExtensiveBookmarkChangesBeginning(BookmarkModel* model) override; | 182 virtual void ExtensiveBookmarkChangesBeginning(BookmarkModel* model) override; |
183 virtual void ExtensiveBookmarkChangesEnded(BookmarkModel* model) override; | 183 virtual void ExtensiveBookmarkChangesEnded(BookmarkModel* model) override; |
184 | 184 |
185 // Deals with updates to the history service. | 185 // Deals with updates to the history service. |
186 void OnHistoryChanged(); | 186 void OnHistoryChanged(); |
187 | 187 |
188 // Override history::HistoryServiceObserver. | 188 // Override history::HistoryServiceObserver. |
189 virtual void OnURLVisited(HistoryService* history_service, | 189 void OnURLVisited(HistoryService* history_service, |
190 ui::PageTransition transition, | 190 ui::PageTransition transition, |
191 const history::URLRow& row, | 191 const history::URLRow& row, |
192 const history::RedirectList& redirects, | 192 const history::RedirectList& redirects, |
193 base::Time visit_time) override; | 193 base::Time visit_time) override; |
| 194 void OnKeywordSearchTermUpdated(HistoryService* history_service, |
| 195 const history::URLRow& row, |
| 196 history::KeywordID keyword_id, |
| 197 const base::string16& term) override; |
194 | 198 |
195 // Override content::NotificationObserver. | 199 // Override content::NotificationObserver. |
196 virtual void Observe(int type, | 200 virtual void Observe(int type, |
197 const content::NotificationSource& source, | 201 const content::NotificationSource& source, |
198 const content::NotificationDetails& details) override; | 202 const content::NotificationDetails& details) override; |
199 | 203 |
200 JavaObjectWeakGlobalRef weak_java_provider_; | 204 JavaObjectWeakGlobalRef weak_java_provider_; |
201 | 205 |
202 // Profile must outlive this object. | 206 // Profile must outlive this object. |
203 // | 207 // |
(...skipping 13 matching lines...) Expand all Loading... |
217 content::NotificationRegistrar notification_registrar_; | 221 content::NotificationRegistrar notification_registrar_; |
218 ScopedObserver<HistoryService, HistoryServiceObserver> | 222 ScopedObserver<HistoryService, HistoryServiceObserver> |
219 history_service_observer_; | 223 history_service_observer_; |
220 | 224 |
221 bool handling_extensive_changes_; | 225 bool handling_extensive_changes_; |
222 | 226 |
223 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserProvider); | 227 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserProvider); |
224 }; | 228 }; |
225 | 229 |
226 #endif // CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ | 230 #endif // CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ |
OLD | NEW |