| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/android/gurl_utils.h" | 5 #include "net/android/gurl_utils.h" |
| 6 | 6 |
| 7 #include "base/android/jni_string.h" | 7 #include "base/android/jni_string.h" |
| 8 #include "jni/GURLUtils_jni.h" | 8 #include "jni/GURLUtils_jni.h" |
| 9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 const JavaParamRef<jstring>& url) { | 26 const JavaParamRef<jstring>& url) { |
| 27 GURL host(base::android::ConvertJavaStringToUTF16(env, url)); | 27 GURL host(base::android::ConvertJavaStringToUTF16(env, url)); |
| 28 | 28 |
| 29 return base::android::ConvertUTF8ToJavaString(env, host.scheme()); | 29 return base::android::ConvertUTF8ToJavaString(env, host.scheme()); |
| 30 } | 30 } |
| 31 | 31 |
| 32 bool RegisterGURLUtils(JNIEnv* env) { | 32 bool RegisterGURLUtils(JNIEnv* env) { |
| 33 return RegisterNativesImpl(env); | 33 return RegisterNativesImpl(env); |
| 34 } | 34 } |
| 35 | 35 |
| 36 } // net namespace | 36 } // namespace net |
| OLD | NEW |