Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1162)

Unified Diff: chrome/browser/enhanced_bookmarks/android/enhanced_bookmarks_bridge.h

Issue 896093007: [Android] Open up API in jni bridge to fetch images from tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits fixes Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/enhanced_bookmarks/android/enhanced_bookmarks_bridge.h
diff --git a/chrome/browser/enhanced_bookmarks/android/enhanced_bookmarks_bridge.h b/chrome/browser/enhanced_bookmarks/android/enhanced_bookmarks_bridge.h
index ec6f54e03b30cb6cd7b637674c976d9640a97c49..ae4e7efa5f428089dfd4c06d823e4016fff36d28 100644
--- a/chrome/browser/enhanced_bookmarks/android/enhanced_bookmarks_bridge.h
+++ b/chrome/browser/enhanced_bookmarks/android/enhanced_bookmarks_bridge.h
@@ -15,7 +15,7 @@
namespace enhanced_bookmarks {
class BookmarkServerClusterService;
-class BookmarkImageService;
+class BookmarkImageServiceAndroid;
namespace android {
@@ -30,6 +30,8 @@ class EnhancedBookmarksBridge : public BookmarkServerServiceObserver {
jstring j_url,
jobject j_callback);
+ void FetchImageForTab(JNIEnv* env, jobject obj, jobject j_web_contents);
+
base::android::ScopedJavaLocalRef<jstring> GetBookmarkDescription(
JNIEnv* env,
jobject obj,
@@ -85,9 +87,9 @@ class EnhancedBookmarksBridge : public BookmarkServerServiceObserver {
bool IsEditable(const bookmarks::BookmarkNode* node) const;
JavaObjectWeakGlobalRef weak_java_ref_;
- EnhancedBookmarkModel* enhanced_bookmark_model_; // weak
- BookmarkServerClusterService* cluster_service_; // weak
- BookmarkImageService* bookmark_image_service_; // weak
+ EnhancedBookmarkModel* enhanced_bookmark_model_; // weak
+ BookmarkServerClusterService* cluster_service_; // weak
+ BookmarkImageServiceAndroid* bookmark_image_service_; // weak
scoped_ptr<BookmarkServerSearchService> search_service_;
Profile* profile_; // weak
DISALLOW_COPY_AND_ASSIGN(EnhancedBookmarksBridge);

Powered by Google App Engine
This is Rietveld 408576698