Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / components / enhanced_bookmarks / android / enhanced_bookmarks_bridge.h
blob1319686955ba09230de5afe821a9026e67b22c02
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"
10 class BookmarkModel;
12 namespace enhanced_bookmarks {
13 namespace android {
15 class EnhancedBookmarksBridge {
16 public:
17 EnhancedBookmarksBridge(JNIEnv* env, jobject obj, jlong bookmark_model_ptr);
18 void Destroy(JNIEnv*, jobject);
20 base::android::ScopedJavaLocalRef<jstring> GetBookmarkDescription(
21 JNIEnv* env,
22 jobject obj,
23 jlong id,
24 jint type);
26 void SetBookmarkDescription(JNIEnv* env,
27 jobject obj,
28 jlong id,
29 jint type,
30 jstring description);
32 private:
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_