| 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/aw_contents_io_thread_client_impl.h" | 5 #include "android_webview/native/aw_contents_io_thread_client_impl.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "android_webview/native/intercepted_request_data_impl.h" | 10 #include "android_webview/native/intercepted_request_data_impl.h" |
| 11 #include "base/android/jni_helper.h" | 11 #include "base/android/jni_helper.h" |
| 12 #include "base/android/jni_string.h" | 12 #include "base/android/jni_string.h" |
| 13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
| 17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 18 #include "content/public/browser/render_process_host.h" | 18 #include "content/public/browser/render_process_host.h" |
| 19 #include "content/public/browser/render_view_host.h" | 19 #include "content/public/browser/render_view_host.h" |
| 20 #include "content/public/browser/resource_request_info.h" | 20 #include "content/public/browser/resource_request_info.h" |
| 21 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
| 22 #include "content/public/browser/web_contents_observer.h" | 22 #include "content/public/browser/web_contents_observer.h" |
| 23 #include "googleurl/src/gurl.h" | 23 #include "jni/AwContentsIoThreadClient_jni.h" |
| 24 #include "net/url_request/url_request.h" | 24 #include "net/url_request/url_request.h" |
| 25 | 25 #include "url/gurl.h" |
| 26 #include "jni/AwContentsIoThreadClient_jni.h" | |
| 27 | 26 |
| 28 using base::android::AttachCurrentThread; | 27 using base::android::AttachCurrentThread; |
| 29 using base::android::ConvertUTF8ToJavaString; | 28 using base::android::ConvertUTF8ToJavaString; |
| 30 using base::android::JavaRef; | 29 using base::android::JavaRef; |
| 31 using base::android::ScopedJavaLocalRef; | 30 using base::android::ScopedJavaLocalRef; |
| 32 using base::LazyInstance; | 31 using base::LazyInstance; |
| 33 using content::BrowserThread; | 32 using content::BrowserThread; |
| 34 using content::RenderViewHost; | 33 using content::RenderViewHost; |
| 35 using content::WebContents; | 34 using content::WebContents; |
| 36 using std::map; | 35 using std::map; |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 288 |
| 290 Java_AwContentsIoThreadClient_newLoginRequest( | 289 Java_AwContentsIoThreadClient_newLoginRequest( |
| 291 env, java_object_.obj(), jrealm.obj(), jaccount.obj(), jargs.obj()); | 290 env, java_object_.obj(), jrealm.obj(), jaccount.obj(), jargs.obj()); |
| 292 } | 291 } |
| 293 | 292 |
| 294 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env) { | 293 bool RegisterAwContentsIoThreadClientImpl(JNIEnv* env) { |
| 295 return RegisterNativesImpl(env); | 294 return RegisterNativesImpl(env); |
| 296 } | 295 } |
| 297 | 296 |
| 298 } // namespace android_webview | 297 } // namespace android_webview |
| OLD | NEW |