Roll src/third_party/WebKit 9f7fb92:f103b33 (svn 202621:202622)
[chromium-blink-merge.git] / components / bookmarks / common / android / bookmark_id.h
blobaf7ae721d5be99ec06c2f27d7d74317d8512b5b6
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_BOOKMARKS_COMMON_ANDROID_BOOKMARK_ID_H_
6 #define COMPONENTS_BOOKMARKS_COMMON_ANDROID_BOOKMARK_ID_H_
8 #include <jni.h>
10 #include "base/android/scoped_java_ref.h"
12 namespace bookmarks {
13 namespace android {
15 // See BookmarkId#getId
16 long JavaBookmarkIdGetId(JNIEnv* env, jobject obj);
18 // See BookmarkId#getType
19 int JavaBookmarkIdGetType(JNIEnv* env, jobject obj);
21 // See BookmarkId#createBookmarkId
22 base::android::ScopedJavaLocalRef<jobject> JavaBookmarkIdCreateBookmarkId(
23 JNIEnv* env, jlong id, jint type);
25 bool RegisterBookmarkId(JNIEnv* env);
27 } // namespace android
28 } // namespace bookmarks
30 #endif // COMPONENTS_BOOKMARKS_COMMON_ANDROID_BOOKMARK_ID_H_