summaryrefslogtreecommitdiffstats
path: root/content/common/android/hash_set.cc
blob: bd73b779734c56d0cae832d697d69770b64532e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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