Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: content/browser/renderer_host/java/gin_java_bound_object_delegate.cc

Issue 336313018: [Android] Move content/browser/{renderer_host => android}/java/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated paths for unit tests, rebased Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #include "content/browser/renderer_host/java/gin_java_bound_object_delegate.h"
6
7 namespace content {
8
9 GinJavaBoundObjectDelegate::GinJavaBoundObjectDelegate(
10 scoped_refptr<GinJavaBoundObject> object)
11 : object_(object) {
12 }
13
14 GinJavaBoundObjectDelegate::~GinJavaBoundObjectDelegate() {
15 }
16
17 base::android::ScopedJavaLocalRef<jobject>
18 GinJavaBoundObjectDelegate::GetLocalRef(JNIEnv* env) {
19 return object_->GetLocalRef(env);
20 }
21
22 base::android::ScopedJavaLocalRef<jclass>
23 GinJavaBoundObjectDelegate::GetLocalClassRef(JNIEnv* env) {
24 return object_->GetLocalClassRef(env);
25 }
26
27 const JavaMethod* GinJavaBoundObjectDelegate::FindMethod(
28 const std::string& method_name,
29 size_t num_parameters) {
30 return object_->FindMethod(method_name, num_parameters);
31 }
32
33 bool GinJavaBoundObjectDelegate::IsObjectGetClassMethod(
34 const JavaMethod* method) {
35 return object_->IsObjectGetClassMethod(method);
36 }
37
38 const base::android::JavaRef<jclass>&
39 GinJavaBoundObjectDelegate::GetSafeAnnotationClass() {
40 return object_->GetSafeAnnotationClass();
41 }
42
43 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698