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_
10 #include "base/android/scoped_java_ref.h"
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_