OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "jni/HashSet_jni.h" | 5 #include "jni/HashSet_jni.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 bool RegisterHashSet(JNIEnv* env) { | |
10 return JNI_HashSet::RegisterNativesImpl(env); | |
11 } | |
12 | |
13 void JNI_Java_HashSet_add(JNIEnv* env, | 9 void JNI_Java_HashSet_add(JNIEnv* env, |
14 const base::android::JavaRef<jobject>& hash_set, | 10 const base::android::JavaRef<jobject>& hash_set, |
15 const base::android::JavaRef<jobject>& object) { | 11 const base::android::JavaRef<jobject>& object) { |
16 JNI_HashSet::Java_HashSet_add(env, hash_set.obj(), object.obj()); | 12 JNI_HashSet::Java_HashSet_add(env, hash_set.obj(), object.obj()); |
17 } | 13 } |
18 | 14 |
19 void JNI_Java_HashSet_remove(JNIEnv* env, | 15 void JNI_Java_HashSet_remove(JNIEnv* env, |
20 const base::android::JavaRef<jobject>& hash_set, | 16 const base::android::JavaRef<jobject>& hash_set, |
21 const base::android::JavaRef<jobject>& object) { | 17 const base::android::JavaRef<jobject>& object) { |
22 JNI_HashSet::Java_HashSet_remove(env, hash_set.obj(), object.obj()); | 18 JNI_HashSet::Java_HashSet_remove(env, hash_set.obj(), object.obj()); |
23 } | 19 } |
24 | 20 |
25 void JNI_Java_HashSet_clear(JNIEnv* env, | 21 void JNI_Java_HashSet_clear(JNIEnv* env, |
26 const base::android::JavaRef<jobject>& hash_set) { | 22 const base::android::JavaRef<jobject>& hash_set) { |
27 JNI_HashSet::Java_HashSet_clear(env, hash_set.obj()); | 23 JNI_HashSet::Java_HashSet_clear(env, hash_set.obj()); |
28 } | 24 } |
29 | 25 |
30 } // namespace content | 26 } // namespace content |
OLD | NEW |