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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H_
6 #define COMPONENTS_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H_
8 #include "base/android/jni_android.h"
12 namespace enhanced_bookmarks
{
15 class EnhancedBookmarksBridge
{
17 EnhancedBookmarksBridge(JNIEnv
* env
, jobject obj
, jlong bookmark_model_ptr
);
18 void Destroy(JNIEnv
*, jobject
);
20 base::android::ScopedJavaLocalRef
<jstring
> GetBookmarkDescription(
26 void SetBookmarkDescription(JNIEnv
* env
,
33 BookmarkModel
* bookmark_model_
; // weak
35 DISALLOW_COPY_AND_ASSIGN(EnhancedBookmarksBridge
);
38 bool RegisterEnhancedBookmarksBridge(JNIEnv
* env
);
40 } // namespace android
41 } // namespace enhanced_bookmarks
43 #endif // COMPONENTS_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H_