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_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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 188 // Override history::HistoryServiceObserver. | 188 // Override history::HistoryServiceObserver. |
| 189 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, | 194 void OnKeywordSearchTermUpdated(HistoryService* history_service, |
| 195 const history::URLRow& row, | 195 const history::URLRow& row, |
| 196 history::KeywordID keyword_id, | 196 history::KeywordID keyword_id, |
| 197 const base::string16& term) override; | 197 const base::string16& term) override; |
| 198 void OnKeywordSearchTermDeleted(HistoryService* history_service, | |
| 199 history::URLID url_id) override{}; | |
|
newt (away)
2015/01/16 18:58:03
space before {
sdefresne
2015/01/17 18:23:23
Nit: no ; after the {} too, and could you not inli
Abhishek
2015/01/19 06:13:01
Done.
Abhishek
2015/01/19 06:13:01
Done.
| |
| 198 | 200 |
| 199 // Override content::NotificationObserver. | 201 // Override content::NotificationObserver. |
| 200 virtual void Observe(int type, | 202 virtual void Observe(int type, |
| 201 const content::NotificationSource& source, | 203 const content::NotificationSource& source, |
| 202 const content::NotificationDetails& details) override; | 204 const content::NotificationDetails& details) override; |
| 203 | 205 |
| 204 JavaObjectWeakGlobalRef weak_java_provider_; | 206 JavaObjectWeakGlobalRef weak_java_provider_; |
| 205 | 207 |
| 206 // Profile must outlive this object. | 208 // Profile must outlive this object. |
| 207 // | 209 // |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 221 content::NotificationRegistrar notification_registrar_; | 223 content::NotificationRegistrar notification_registrar_; |
| 222 ScopedObserver<HistoryService, HistoryServiceObserver> | 224 ScopedObserver<HistoryService, HistoryServiceObserver> |
| 223 history_service_observer_; | 225 history_service_observer_; |
| 224 | 226 |
| 225 bool handling_extensive_changes_; | 227 bool handling_extensive_changes_; |
| 226 | 228 |
| 227 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserProvider); | 229 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserProvider); |
| 228 }; | 230 }; |
| 229 | 231 |
| 230 #endif // CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ | 232 #endif // CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ |
| OLD | NEW |