| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_client_bridge.h" | 5 #include "android_webview/native/aw_contents_client_bridge.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
| 9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 12 #include "googleurl/src/gurl.h" | |
| 13 #include "jni/AwContentsClientBridge_jni.h" | 12 #include "jni/AwContentsClientBridge_jni.h" |
| 14 #include "net/cert/x509_certificate.h" | 13 #include "net/cert/x509_certificate.h" |
| 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 using base::android::AttachCurrentThread; | 16 using base::android::AttachCurrentThread; |
| 17 using base::android::ConvertJavaStringToUTF16; | 17 using base::android::ConvertJavaStringToUTF16; |
| 18 using base::android::ConvertUTF8ToJavaString; | 18 using base::android::ConvertUTF8ToJavaString; |
| 19 using base::android::ConvertUTF16ToJavaString; | 19 using base::android::ConvertUTF16ToJavaString; |
| 20 using base::android::JavaRef; | 20 using base::android::JavaRef; |
| 21 using base::android::ScopedJavaLocalRef; | 21 using base::android::ScopedJavaLocalRef; |
| 22 using content::BrowserThread; | 22 using content::BrowserThread; |
| 23 | 23 |
| 24 namespace android_webview { | 24 namespace android_webview { |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 if (callback) | 177 if (callback) |
| 178 callback->Run(false, string16()); | 178 callback->Run(false, string16()); |
| 179 pending_js_dialog_callbacks_.Remove(id); | 179 pending_js_dialog_callbacks_.Remove(id); |
| 180 } | 180 } |
| 181 | 181 |
| 182 bool RegisterAwContentsClientBridge(JNIEnv* env) { | 182 bool RegisterAwContentsClientBridge(JNIEnv* env) { |
| 183 return RegisterNativesImpl(env) >= 0; | 183 return RegisterNativesImpl(env) >= 0; |
| 184 } | 184 } |
| 185 | 185 |
| 186 } // namespace android_webview | 186 } // namespace android_webview |
| OLD | NEW |