| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" | 5 #include "chrome/browser/dom_distiller/dom_distiller_service_factory_android.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 8 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/profiles/profile_android.h" | 10 #include "chrome/browser/profiles/profile_android.h" |
| 11 #include "components/dom_distiller/core/dom_distiller_service_android.h" | 11 #include "components/dom_distiller/core/dom_distiller_service_android.h" |
| 12 #include "jni/DomDistillerServiceFactory_jni.h" | 12 #include "jni/DomDistillerServiceFactory_jni.h" |
| 13 | 13 |
| 14 using base::android::JavaParamRef; |
| 14 using base::android::ScopedJavaLocalRef; | 15 using base::android::ScopedJavaLocalRef; |
| 15 | 16 |
| 16 namespace dom_distiller { | 17 namespace dom_distiller { |
| 17 namespace android { | 18 namespace android { |
| 18 | 19 |
| 19 ScopedJavaLocalRef<jobject> DomDistillerServiceFactoryAndroid::GetForProfile( | 20 ScopedJavaLocalRef<jobject> DomDistillerServiceFactoryAndroid::GetForProfile( |
| 20 JNIEnv* env, | 21 JNIEnv* env, |
| 21 jclass clazz, | 22 jclass clazz, |
| 22 jobject j_profile) { | 23 jobject j_profile) { |
| 23 dom_distiller::DomDistillerService* service = | 24 dom_distiller::DomDistillerService* service = |
| (...skipping 11 matching lines...) Expand all Loading... |
| 35 ScopedJavaLocalRef<jobject> GetForProfile( | 36 ScopedJavaLocalRef<jobject> GetForProfile( |
| 36 JNIEnv* env, | 37 JNIEnv* env, |
| 37 const JavaParamRef<jclass>& clazz, | 38 const JavaParamRef<jclass>& clazz, |
| 38 const JavaParamRef<jobject>& j_profile) { | 39 const JavaParamRef<jobject>& j_profile) { |
| 39 return DomDistillerServiceFactoryAndroid::GetForProfile(env, clazz, | 40 return DomDistillerServiceFactoryAndroid::GetForProfile(env, clazz, |
| 40 j_profile); | 41 j_profile); |
| 41 } | 42 } |
| 42 | 43 |
| 43 } // namespace android | 44 } // namespace android |
| 44 } // namespace dom_distiller | 45 } // namespace dom_distiller |
| OLD | NEW |