Chromium Code Reviews| Index: components/enhanced_bookmarks/android/enhanced_bookmarks_bridge.h |
| diff --git a/components/enhanced_bookmarks/android/enhanced_bookmarks_bridge.h b/components/enhanced_bookmarks/android/enhanced_bookmarks_bridge.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..981f7203ae32dc586ebd071fd153f9286da259de |
| --- /dev/null |
| +++ b/components/enhanced_bookmarks/android/enhanced_bookmarks_bridge.h |
| @@ -0,0 +1,45 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H_ |
| +#define COMPONENTS_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H_ |
| + |
| +#include "base/android/jni_android.h" |
| + |
|
Yaron
2014/08/12 20:15:50
unused
Kibeom Kim (inactive)
2014/08/12 22:33:48
Done.
|
| +class BookmarkImageServiceAndroid; |
| +class BookmarkModel; |
| + |
| +using base::android::ScopedJavaLocalRef; |
| + |
| +namespace enhanced_bookmarks { |
| +namespace android { |
| + |
| +class EnhancedBookmarksBridge { |
| + public: |
| + EnhancedBookmarksBridge(JNIEnv* env, jobject obj, jlong bookmark_model_ptr); |
| + void Destroy(JNIEnv*, jobject); |
| + |
| + ScopedJavaLocalRef<jstring> GetBookmarkDescription(JNIEnv* env, |
| + jobject obj, |
| + jlong id, |
| + jint type); |
| + |
| + void SetBookmarkDescription(JNIEnv* env, |
| + jobject obj, |
| + jlong id, |
| + jint type, |
| + jstring description); |
| + |
| + private: |
| + BookmarkModel* bookmark_model_; // weak |
| + |
| + DISALLOW_COPY_AND_ASSIGN(EnhancedBookmarksBridge); |
| +}; |
| + |
| +bool RegisterEnhancedBookmarksBridge(JNIEnv* env); |
| + |
| +} // namespace android |
| +} // namespace enhanced_bookmarks |
| + |
| +#endif // COMPONENTS_ENHANCED_BOOKMARKS_ANDROID_ENHANCED_BOOKMARKS_BRIDGE_H_ |