| 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 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "android_webview/browser/aw_contents_client_bridge_base.h" | 10 #include "android_webview/browser/aw_contents_client_bridge_base.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 override; | 54 override; |
| 55 void RunBeforeUnloadDialog( | 55 void RunBeforeUnloadDialog( |
| 56 const GURL& origin_url, | 56 const GURL& origin_url, |
| 57 const content::JavaScriptDialogManager::DialogClosedCallback& callback) | 57 const content::JavaScriptDialogManager::DialogClosedCallback& callback) |
| 58 override; | 58 override; |
| 59 bool ShouldOverrideUrlLoading(const base::string16& url, | 59 bool ShouldOverrideUrlLoading(const base::string16& url, |
| 60 bool has_user_gesture, | 60 bool has_user_gesture, |
| 61 bool is_redirect, | 61 bool is_redirect, |
| 62 bool is_main_frame) override; | 62 bool is_main_frame) override; |
| 63 | 63 |
| 64 void NewDownload(const GURL& url, |
| 65 const std::string& user_agent, |
| 66 const std::string& content_disposition, |
| 67 const std::string& mime_type, |
| 68 int64_t content_length) override; |
| 69 |
| 64 // Methods called from Java. | 70 // Methods called from Java. |
| 65 void ProceedSslError(JNIEnv* env, | 71 void ProceedSslError(JNIEnv* env, |
| 66 const base::android::JavaRef<jobject>& obj, | 72 const base::android::JavaRef<jobject>& obj, |
| 67 jboolean proceed, | 73 jboolean proceed, |
| 68 jint id); | 74 jint id); |
| 69 void ProvideClientCertificateResponse( | 75 void ProvideClientCertificateResponse( |
| 70 JNIEnv* env, | 76 JNIEnv* env, |
| 71 const base::android::JavaRef<jobject>& object, | 77 const base::android::JavaRef<jobject>& object, |
| 72 jint request_id, | 78 jint request_id, |
| 73 const base::android::JavaRef<jobjectArray>& encoded_chain_ref, | 79 const base::android::JavaRef<jobjectArray>& encoded_chain_ref, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 92 // doesn't provide Release, so ownership is managed manually. | 98 // doesn't provide Release, so ownership is managed manually. |
| 93 IDMap<content::ClientCertificateDelegate> | 99 IDMap<content::ClientCertificateDelegate> |
| 94 pending_client_cert_request_delegates_; | 100 pending_client_cert_request_delegates_; |
| 95 }; | 101 }; |
| 96 | 102 |
| 97 bool RegisterAwContentsClientBridge(JNIEnv* env); | 103 bool RegisterAwContentsClientBridge(JNIEnv* env); |
| 98 | 104 |
| 99 } // namespace android_webview | 105 } // namespace android_webview |
| 100 | 106 |
| 101 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ | 107 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_CLIENT_BRIDGE_H_ |
| OLD | NEW |