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/context_utils.h" |
11 #include "base/android/jni_android.h" | 12 #include "base/android/jni_android.h" |
12 #include "base/android/jni_string.h" | 13 #include "base/android/jni_string.h" |
13 #include "base/android/jni_weak_ref.h" | 14 #include "base/android/jni_weak_ref.h" |
14 #include "content/public/common/url_constants.h" | 15 #include "content/public/common/url_constants.h" |
15 #include "jni/AndroidProtocolHandler_jni.h" | 16 #include "jni/AndroidProtocolHandler_jni.h" |
16 #include "net/base/io_buffer.h" | 17 #include "net/base/io_buffer.h" |
17 #include "net/base/mime_util.h" | 18 #include "net/base/mime_util.h" |
18 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
19 #include "net/base/net_util.h" | 20 #include "net/base/net_util.h" |
20 #include "net/http/http_util.h" | 21 #include "net/http/http_util.h" |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 return ConvertUTF8ToJavaString(env, android_webview::kAndroidAssetPath); | 290 return ConvertUTF8ToJavaString(env, android_webview::kAndroidAssetPath); |
290 } | 291 } |
291 | 292 |
292 static ScopedJavaLocalRef<jstring> GetAndroidResourcePath( | 293 static ScopedJavaLocalRef<jstring> GetAndroidResourcePath( |
293 JNIEnv* env, | 294 JNIEnv* env, |
294 const JavaParamRef<jclass>& /*clazz*/) { | 295 const JavaParamRef<jclass>& /*clazz*/) { |
295 return ConvertUTF8ToJavaString(env, android_webview::kAndroidResourcePath); | 296 return ConvertUTF8ToJavaString(env, android_webview::kAndroidResourcePath); |
296 } | 297 } |
297 | 298 |
298 } // namespace android_webview | 299 } // namespace android_webview |
OLD | NEW |