OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARKS_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARKS_BRIDGE_H_ |
6 #define CHROME_BROWSER_ANDROID_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARKS_BRIDGE_H_ | 6 #define CHROME_BROWSER_ANDROID_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARKS_BRIDGE_H_ |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/jni_weak_ref.h" | 9 #include "base/android/jni_weak_ref.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 base::android::ScopedJavaLocalRef<jobject> GetSearchResults(JNIEnv* env, | 70 base::android::ScopedJavaLocalRef<jobject> GetSearchResults(JNIEnv* env, |
71 jobject obj, | 71 jobject obj, |
72 jstring j_query); | 72 jstring j_query); |
73 | 73 |
74 // BookmarkServerServiceObserver | 74 // BookmarkServerServiceObserver |
75 // Called on changes to cluster data or search results are returned. | 75 // Called on changes to cluster data or search results are returned. |
76 void OnChange(BookmarkServerService* service) override; | 76 void OnChange(BookmarkServerService* service) override; |
77 | 77 |
78 private: | 78 private: |
79 bool IsEditable(const BookmarkNode* node) const; | 79 bool IsEditable(const bookmarks::BookmarkNode* node) const; |
80 | 80 |
81 JavaObjectWeakGlobalRef weak_java_ref_; | 81 JavaObjectWeakGlobalRef weak_java_ref_; |
82 EnhancedBookmarkModel* enhanced_bookmark_model_; // weak | 82 EnhancedBookmarkModel* enhanced_bookmark_model_; // weak |
83 BookmarkServerClusterService* cluster_service_; // weak | 83 BookmarkServerClusterService* cluster_service_; // weak |
84 scoped_ptr<BookmarkServerSearchService> search_service_; | 84 scoped_ptr<BookmarkServerSearchService> search_service_; |
85 Profile* profile_; // weak | 85 Profile* profile_; // weak |
86 DISALLOW_COPY_AND_ASSIGN(EnhancedBookmarksBridge); | 86 DISALLOW_COPY_AND_ASSIGN(EnhancedBookmarksBridge); |
87 }; | 87 }; |
88 | 88 |
89 bool RegisterEnhancedBookmarksBridge(JNIEnv* env); | 89 bool RegisterEnhancedBookmarksBridge(JNIEnv* env); |
90 | 90 |
91 } // namespace android | 91 } // namespace android |
92 } // namespace enhanced_bookmarks | 92 } // namespace enhanced_bookmarks |
93 | 93 |
94 #endif // CHROME_BROWSER_ANDROID_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARKS_BRIDGE_H
_ | 94 #endif // CHROME_BROWSER_ANDROID_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARKS_BRIDGE_H
_ |
OLD | NEW |