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/url_utils_android.h" | 5 #include "components/dom_distiller/core/url_utils_android.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "components/dom_distiller/core/url_constants.h" | 10 #include "components/dom_distiller/core/url_constants.h" |
11 #include "components/dom_distiller/core/url_utils.h" | 11 #include "components/dom_distiller/core/url_utils.h" |
12 #include "jni/DomDistillerUrlUtils_jni.h" | 12 #include "jni/DomDistillerUrlUtils_jni.h" |
13 #include "net/base/url_util.h" | 13 #include "net/base/url_util.h" |
14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
15 | 15 |
| 16 using base::android::JavaParamRef; |
| 17 using base::android::ScopedJavaLocalRef; |
| 18 |
16 namespace dom_distiller { | 19 namespace dom_distiller { |
17 | 20 |
18 namespace url_utils { | 21 namespace url_utils { |
19 | 22 |
20 namespace android { | 23 namespace android { |
21 | 24 |
22 ScopedJavaLocalRef<jstring> GetDistillerViewUrlFromUrl( | 25 ScopedJavaLocalRef<jstring> GetDistillerViewUrlFromUrl( |
23 JNIEnv* env, | 26 JNIEnv* env, |
24 const JavaParamRef<jclass>& clazz, | 27 const JavaParamRef<jclass>& clazz, |
25 const JavaParamRef<jstring>& j_scheme, | 28 const JavaParamRef<jstring>& j_scheme, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 env, dom_distiller::url_utils::GetValueForKeyInUrl(url, key)); | 88 env, dom_distiller::url_utils::GetValueForKeyInUrl(url, key)); |
86 } | 89 } |
87 | 90 |
88 bool RegisterUrlUtils(JNIEnv* env) { return RegisterNativesImpl(env); } | 91 bool RegisterUrlUtils(JNIEnv* env) { return RegisterNativesImpl(env); } |
89 | 92 |
90 } // namespace android | 93 } // namespace android |
91 | 94 |
92 } // namespace url_utils | 95 } // namespace url_utils |
93 | 96 |
94 } // namespace dom_distiller | 97 } // namespace dom_distiller |
OLD | NEW |