summaryrefslogtreecommitdiffstats
path: root/content/common/android/hash_set.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/android/hash_set.cc')
-rw-r--r--content/common/android/hash_set.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/content/common/android/hash_set.cc b/content/common/android/hash_set.cc
new file mode 100644
index 0000000..bd73b77
--- /dev/null
+++ b/content/common/android/hash_set.cc
@@ -0,0 +1,30 @@
+// Copyright (c) 2013 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.
+
+#include "jni/HashSet_jni.h"
+
+namespace content {
+
+bool RegisterHashSet(JNIEnv* env) {
+ return JNI_HashSet::RegisterNativesImpl(env);
+}
+
+void JNI_Java_HashSet_add(JNIEnv* env,
+ const base::android::JavaRef<jobject>& hash_set,
+ const base::android::JavaRef<jobject>& object) {
+ JNI_HashSet::Java_HashSet_add(env, hash_set.obj(), object.obj());
+}
+
+void JNI_Java_HashSet_remove(JNIEnv* env,
+ const base::android::JavaRef<jobject>& hash_set,
+ const base::android::JavaRef<jobject>& object) {
+ JNI_HashSet::Java_HashSet_remove(env, hash_set.obj(), object.obj());
+}
+
+void JNI_Java_HashSet_clear(JNIEnv* env,
+ const base::android::JavaRef<jobject>& hash_set) {
+ JNI_HashSet::Java_HashSet_clear(env, hash_set.obj());
+}
+
+} // namespace content