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 #include "content/browser/android/java/gin_java_bound_object_delegate.h"
9 GinJavaBoundObjectDelegate::GinJavaBoundObjectDelegate(
10 scoped_refptr
<GinJavaBoundObject
> object
)
14 GinJavaBoundObjectDelegate::~GinJavaBoundObjectDelegate() {
17 base::android::ScopedJavaLocalRef
<jobject
>
18 GinJavaBoundObjectDelegate::GetLocalRef(JNIEnv
* env
) {
19 return object_
->GetLocalRef(env
);
22 base::android::ScopedJavaLocalRef
<jclass
>
23 GinJavaBoundObjectDelegate::GetLocalClassRef(JNIEnv
* env
) {
24 return object_
->GetLocalClassRef(env
);
27 const JavaMethod
* GinJavaBoundObjectDelegate::FindMethod(
28 const std::string
& method_name
,
29 size_t num_parameters
) {
30 return object_
->FindMethod(method_name
, num_parameters
);
33 bool GinJavaBoundObjectDelegate::IsObjectGetClassMethod(
34 const JavaMethod
* method
) {
35 return object_
->IsObjectGetClassMethod(method
);
38 const base::android::JavaRef
<jclass
>&
39 GinJavaBoundObjectDelegate::GetSafeAnnotationClass() {
40 return object_
->GetSafeAnnotationClass();
43 } // namespace content