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 "chrome/browser/ui/android/ssl_client_certificate_request.h" | 5 #include "chrome/browser/ui/android/ssl_client_certificate_request.h" |
6 | 6 |
7 #include "base/android/jni_array.h" | 7 #include "base/android/jni_array.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 } | 220 } |
221 | 221 |
222 bool RegisterSSLClientCertificateRequestAndroid(JNIEnv* env) { | 222 bool RegisterSSLClientCertificateRequestAndroid(JNIEnv* env) { |
223 return RegisterNativesImpl(env); | 223 return RegisterNativesImpl(env); |
224 } | 224 } |
225 | 225 |
226 } // namespace android | 226 } // namespace android |
227 | 227 |
228 void ShowSSLClientCertificateSelector( | 228 void ShowSSLClientCertificateSelector( |
229 content::WebContents* contents, | 229 content::WebContents* contents, |
| 230 const net::HttpNetworkSession* network_session, |
230 net::SSLCertRequestInfo* cert_request_info, | 231 net::SSLCertRequestInfo* cert_request_info, |
231 const chrome::SelectCertificateCallback& callback) { | 232 const chrome::SelectCertificateCallback& callback) { |
232 ui::WindowAndroid* window = | 233 ui::WindowAndroid* window = |
233 WindowAndroidHelper::FromWebContents(contents)->GetWindowAndroid(); | 234 WindowAndroidHelper::FromWebContents(contents)->GetWindowAndroid(); |
234 DCHECK(window); | 235 DCHECK(window); |
235 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 236 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
236 StartClientCertificateRequest(cert_request_info, window, callback); | 237 StartClientCertificateRequest(cert_request_info, window, callback); |
237 } | 238 } |
238 | 239 |
239 } // namespace chrome | 240 } // namespace chrome |
OLD | NEW |