| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BOOKMARKS_BOOKMARKS_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ | 6 #define CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // bookmark page. This fetches the bookmarks, title, urls, folder | 22 // bookmark page. This fetches the bookmarks, title, urls, folder |
| 23 // hierarchy. | 23 // hierarchy. |
| 24 class BookmarksBridge : public BaseBookmarkModelObserver, | 24 class BookmarksBridge : public BaseBookmarkModelObserver, |
| 25 public PartnerBookmarksShim::Observer { | 25 public PartnerBookmarksShim::Observer { |
| 26 public: | 26 public: |
| 27 BookmarksBridge(JNIEnv* env, jobject obj, jobject j_profile); | 27 BookmarksBridge(JNIEnv* env, jobject obj, jobject j_profile); |
| 28 void Destroy(JNIEnv*, jobject); | 28 void Destroy(JNIEnv*, jobject); |
| 29 | 29 |
| 30 static bool RegisterBookmarksBridge(JNIEnv* env); | 30 static bool RegisterBookmarksBridge(JNIEnv* env); |
| 31 | 31 |
| 32 bool IsDoingExtensiveChanges(JNIEnv* env, jobject obj); |
| 33 |
| 32 base::android::ScopedJavaLocalRef<jobject> GetBookmarkByID( | 34 base::android::ScopedJavaLocalRef<jobject> GetBookmarkByID( |
| 33 JNIEnv* env, | 35 JNIEnv* env, |
| 34 jobject obj, | 36 jobject obj, |
| 35 jlong id, | 37 jlong id, |
| 36 jint type); | 38 jint type); |
| 37 | 39 |
| 38 void GetPermanentNodeIDs(JNIEnv* env, | 40 void GetPermanentNodeIDs(JNIEnv* env, |
| 39 jobject obj, | 41 jobject obj, |
| 40 jobject j_result_obj); | 42 jobject j_result_obj); |
| 41 | 43 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 ChromeBookmarkClient* client_; // weak | 171 ChromeBookmarkClient* client_; // weak |
| 170 | 172 |
| 171 // Information about the Partner bookmarks (must check for IsLoaded()). | 173 // Information about the Partner bookmarks (must check for IsLoaded()). |
| 172 // This is owned by profile. | 174 // This is owned by profile. |
| 173 PartnerBookmarksShim* partner_bookmarks_shim_; | 175 PartnerBookmarksShim* partner_bookmarks_shim_; |
| 174 | 176 |
| 175 DISALLOW_COPY_AND_ASSIGN(BookmarksBridge); | 177 DISALLOW_COPY_AND_ASSIGN(BookmarksBridge); |
| 176 }; | 178 }; |
| 177 | 179 |
| 178 #endif // CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ | 180 #endif // CHROME_BROWSER_ANDROID_BOOKMARKS_BOOKMARKS_BRIDGE_H_ |
| OLD | NEW |