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 "components/dom_distiller/core/distilled_page_prefs_android.h" | 5 #include "components/dom_distiller/core/distilled_page_prefs_android.h" |
6 | 6 |
7 #include "components/dom_distiller/core/distilled_page_prefs.h" | 7 #include "components/dom_distiller/core/distilled_page_prefs.h" |
8 #include "components/dom_distiller/core/dom_distiller_service.h" | 8 #include "components/dom_distiller/core/dom_distiller_service.h" |
9 #include "jni/DistilledPagePrefs_jni.h" | 9 #include "jni/DistilledPagePrefs_jni.h" |
10 | 10 |
| 11 using base::android::JavaParamRef; |
| 12 |
11 namespace dom_distiller { | 13 namespace dom_distiller { |
12 | 14 |
13 namespace android { | 15 namespace android { |
14 | 16 |
15 DistilledPagePrefsAndroid::DistilledPagePrefsAndroid( | 17 DistilledPagePrefsAndroid::DistilledPagePrefsAndroid( |
16 JNIEnv* env, | 18 JNIEnv* env, |
17 jobject obj, | 19 jobject obj, |
18 DistilledPagePrefs* distilled_page_prefs_ptr) | 20 DistilledPagePrefs* distilled_page_prefs_ptr) |
19 : distilled_page_prefs_(distilled_page_prefs_ptr) { | 21 : distilled_page_prefs_(distilled_page_prefs_ptr) { |
20 } | 22 } |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 128 |
127 jlong InitObserverAndroid(JNIEnv* env, const JavaParamRef<jobject>& obj) { | 129 jlong InitObserverAndroid(JNIEnv* env, const JavaParamRef<jobject>& obj) { |
128 DistilledPagePrefsObserverAndroid* observer_android = | 130 DistilledPagePrefsObserverAndroid* observer_android = |
129 new DistilledPagePrefsObserverAndroid(env, obj); | 131 new DistilledPagePrefsObserverAndroid(env, obj); |
130 return reinterpret_cast<intptr_t>(observer_android); | 132 return reinterpret_cast<intptr_t>(observer_android); |
131 } | 133 } |
132 | 134 |
133 } // namespace android | 135 } // namespace android |
134 | 136 |
135 } // namespace dom_distiller | 137 } // namespace dom_distiller |
OLD | NEW |