| 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_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 jint request_id, | 115 jint request_id, |
| 116 const base::android::JavaRef<jobjectArray>& encoded_chain_ref, | 116 const base::android::JavaRef<jobjectArray>& encoded_chain_ref, |
| 117 const base::android::JavaRef<jobject>& private_key_ref); | 117 const base::android::JavaRef<jobject>& private_key_ref); |
| 118 void ConfirmJsResult(JNIEnv*, | 118 void ConfirmJsResult(JNIEnv*, |
| 119 const base::android::JavaRef<jobject>&, | 119 const base::android::JavaRef<jobject>&, |
| 120 int id, | 120 int id, |
| 121 const base::android::JavaRef<jstring>& prompt); | 121 const base::android::JavaRef<jstring>& prompt); |
| 122 void CancelJsResult(JNIEnv*, const base::android::JavaRef<jobject>&, int id); | 122 void CancelJsResult(JNIEnv*, const base::android::JavaRef<jobject>&, int id); |
| 123 | 123 |
| 124 private: | 124 private: |
| 125 void HandleErrorInClientCertificateResponse(int id); | |
| 126 | |
| 127 JavaObjectWeakGlobalRef java_ref_; | 125 JavaObjectWeakGlobalRef java_ref_; |
| 128 | 126 |
| 129 typedef const base::Callback<void(content::CertificateRequestResultType)> | 127 typedef const base::Callback<void(content::CertificateRequestResultType)> |
| 130 CertErrorCallback; | 128 CertErrorCallback; |
| 131 IDMap<std::unique_ptr<CertErrorCallback>> pending_cert_error_callbacks_; | 129 IDMap<std::unique_ptr<CertErrorCallback>> pending_cert_error_callbacks_; |
| 132 IDMap<std::unique_ptr<content::JavaScriptDialogManager::DialogClosedCallback>> | 130 IDMap<std::unique_ptr<content::JavaScriptDialogManager::DialogClosedCallback>> |
| 133 pending_js_dialog_callbacks_; | 131 pending_js_dialog_callbacks_; |
| 134 // |pending_client_cert_request_delegates_| owns its pointers, but IDMap | 132 IDMap<std::unique_ptr<content::ClientCertificateDelegate>> |
| 135 // doesn't provide Release, so ownership is managed manually. | |
| 136 IDMap<content::ClientCertificateDelegate*> | |
| 137 pending_client_cert_request_delegates_; | 133 pending_client_cert_request_delegates_; |
| 138 }; | 134 }; |
| 139 | 135 |
| 140 bool RegisterAwContentsClientBridge(JNIEnv* env); | 136 bool RegisterAwContentsClientBridge(JNIEnv* env); |
| 141 | 137 |
| 142 } // namespace android_webview | 138 } // namespace android_webview |
| 143 | 139 |
| 144 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_H_ | 140 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_H_ |
| OLD | NEW |