| 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 "android_webview/native/android_protocol_handler.h" | 5 #include "android_webview/native/android_protocol_handler.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/net/android_stream_reader_url_request_job.h" | 7 #include "android_webview/browser/net/android_stream_reader_url_request_job.h" |
| 8 #include "android_webview/browser/net/aw_url_request_job_factory.h" | 8 #include "android_webview/browser/net/aw_url_request_job_factory.h" |
| 9 #include "android_webview/common/url_constants.h" | 9 #include "android_webview/common/url_constants.h" |
| 10 #include "android_webview/native/input_stream_impl.h" | 10 #include "android_webview/native/input_stream_impl.h" |
| 11 #include "base/android/jni_android.h" | 11 #include "base/android/jni_android.h" |
| 12 #include "base/android/jni_helper.h" | 12 #include "base/android/jni_helper.h" |
| 13 #include "base/android/jni_string.h" | 13 #include "base/android/jni_string.h" |
| 14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 15 #include "content/public/common/url_constants.h" | 15 #include "content/public/common/url_constants.h" |
| 16 #include "googleurl/src/gurl.h" | |
| 17 #include "jni/AndroidProtocolHandler_jni.h" | 16 #include "jni/AndroidProtocolHandler_jni.h" |
| 18 #include "net/base/io_buffer.h" | 17 #include "net/base/io_buffer.h" |
| 19 #include "net/base/mime_util.h" | 18 #include "net/base/mime_util.h" |
| 20 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
| 21 #include "net/base/net_util.h" | 20 #include "net/base/net_util.h" |
| 22 #include "net/http/http_util.h" | 21 #include "net/http/http_util.h" |
| 23 #include "net/url_request/protocol_intercept_job_factory.h" | 22 #include "net/url_request/protocol_intercept_job_factory.h" |
| 24 #include "net/url_request/url_request.h" | 23 #include "net/url_request/url_request.h" |
| 24 #include "url/gurl.h" |
| 25 | 25 |
| 26 using android_webview::InputStream; | 26 using android_webview::InputStream; |
| 27 using android_webview::InputStreamImpl; | 27 using android_webview::InputStreamImpl; |
| 28 using base::android::AttachCurrentThread; | 28 using base::android::AttachCurrentThread; |
| 29 using base::android::ClearException; | 29 using base::android::ClearException; |
| 30 using base::android::ConvertUTF8ToJavaString; | 30 using base::android::ConvertUTF8ToJavaString; |
| 31 using base::android::ScopedJavaGlobalRef; | 31 using base::android::ScopedJavaGlobalRef; |
| 32 using base::android::ScopedJavaLocalRef; | 32 using base::android::ScopedJavaLocalRef; |
| 33 | 33 |
| 34 namespace { | 34 namespace { |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 env, android_webview::kAndroidAssetPath).Release(); | 308 env, android_webview::kAndroidAssetPath).Release(); |
| 309 } | 309 } |
| 310 | 310 |
| 311 static jstring GetAndroidResourcePath(JNIEnv* env, jclass /*clazz*/) { | 311 static jstring GetAndroidResourcePath(JNIEnv* env, jclass /*clazz*/) { |
| 312 // OK to release, JNI binding. | 312 // OK to release, JNI binding. |
| 313 return ConvertUTF8ToJavaString( | 313 return ConvertUTF8ToJavaString( |
| 314 env, android_webview::kAndroidResourcePath).Release(); | 314 env, android_webview::kAndroidResourcePath).Release(); |
| 315 } | 315 } |
| 316 | 316 |
| 317 } // namespace android_webview | 317 } // namespace android_webview |
| OLD | NEW |