| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/android/jni_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class Profile; | 21 class Profile; |
| 22 | 22 |
| 23 namespace favicon { | 23 namespace favicon { |
| 24 class FaviconService; | 24 class FaviconService; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace history { | 27 namespace history { |
| 28 class TopSites; | 28 class TopSites; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace sql { | |
| 32 class Statement; | |
| 33 } | |
| 34 | |
| 35 // This class implements the native methods of ChromeBrowserProvider.java | 31 // This class implements the native methods of ChromeBrowserProvider.java |
| 36 class ChromeBrowserProvider : public bookmarks::BaseBookmarkModelObserver, | 32 class ChromeBrowserProvider : public bookmarks::BaseBookmarkModelObserver, |
| 37 public history::HistoryServiceObserver { | 33 public history::HistoryServiceObserver { |
| 38 public: | 34 public: |
| 39 ChromeBrowserProvider(JNIEnv* env, jobject obj); | 35 ChromeBrowserProvider(JNIEnv* env, jobject obj); |
| 40 void Destroy(JNIEnv*, const base::android::JavaParamRef<jobject>&); | 36 void Destroy(JNIEnv*, const base::android::JavaParamRef<jobject>&); |
| 41 | 37 |
| 42 // JNI registration. | 38 // JNI registration. |
| 43 static bool RegisterChromeBrowserProvider(JNIEnv* env); | 39 static bool RegisterChromeBrowserProvider(JNIEnv* env); |
| 44 | 40 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 234 |
| 239 ScopedObserver<history::HistoryService, history::HistoryServiceObserver> | 235 ScopedObserver<history::HistoryService, history::HistoryServiceObserver> |
| 240 history_service_observer_; | 236 history_service_observer_; |
| 241 | 237 |
| 242 bool handling_extensive_changes_; | 238 bool handling_extensive_changes_; |
| 243 | 239 |
| 244 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserProvider); | 240 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserProvider); |
| 245 }; | 241 }; |
| 246 | 242 |
| 247 #endif // CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ | 243 #endif // CHROME_BROWSER_ANDROID_PROVIDER_CHROME_BROWSER_PROVIDER_H_ |
| OLD | NEW |