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

Side by Side Diff: blimp/client/core/contents/android/blimp_contents_factory.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "blimp/client/core/contents/android/blimp_contents_factory.h" 5 #include "blimp/client/core/contents/android/blimp_contents_factory.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "blimp/client/core/contents/android/blimp_contents_impl_android.h" 9 #include "blimp/client/core/contents/android/blimp_contents_impl_android.h"
10 #include "blimp/client/core/contents/blimp_contents_impl.h" 10 #include "blimp/client/core/contents/blimp_contents_impl.h"
11 #include "jni/BlimpContentsFactory_jni.h" 11 #include "jni/BlimpContentsFactory_jni.h"
12 12
13 using base::android::JavaParamRef;
14
13 namespace blimp { 15 namespace blimp {
14 namespace client { 16 namespace client {
15 17
16 static base::android::ScopedJavaLocalRef<jobject> CreateBlimpContents( 18 static base::android::ScopedJavaLocalRef<jobject> CreateBlimpContents(
17 JNIEnv* env, 19 JNIEnv* env,
18 const JavaParamRef<jclass>& clazz) { 20 const JavaParamRef<jclass>& clazz) {
19 // To delete |blimp_contents_impl|, the Java caller must call the 21 // To delete |blimp_contents_impl|, the Java caller must call the
20 // destroy() method on BlimpContents. 22 // destroy() method on BlimpContents.
21 BlimpContentsImpl* blimp_contents_impl = new BlimpContentsImpl; 23 BlimpContentsImpl* blimp_contents_impl = new BlimpContentsImpl;
22 return blimp_contents_impl->GetJavaBlimpContentsImpl(); 24 return blimp_contents_impl->GetJavaBlimpContentsImpl();
23 } 25 }
24 26
25 bool RegisterBlimpContentsFactoryJni(JNIEnv* env) { 27 bool RegisterBlimpContentsFactoryJni(JNIEnv* env) {
26 return RegisterNativesImpl(env); 28 return RegisterNativesImpl(env);
27 } 29 }
28 30
29 } // namespace client 31 } // namespace client
30 } // namespace blimp 32 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698