OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 // Informs the embedder that a certificate error has occured. If overridable | 164 // Informs the embedder that a certificate error has occured. If overridable |
165 // is true, the user can ignore the error and continue. If it's false, then | 165 // is true, the user can ignore the error and continue. If it's false, then |
166 // the certificate error is severe and the user isn't allowed to proceed. The | 166 // the certificate error is severe and the user isn't allowed to proceed. The |
167 // embedder can call the callback asynchronously. | 167 // embedder can call the callback asynchronously. |
168 virtual void AllowCertificateError( | 168 virtual void AllowCertificateError( |
169 SSLCertErrorHandler* handler, | 169 SSLCertErrorHandler* handler, |
170 bool overridable, | 170 bool overridable, |
171 Callback2<SSLCertErrorHandler*, bool>::Type* callback) = 0; | 171 Callback2<SSLCertErrorHandler*, bool>::Type* callback) = 0; |
172 | 172 |
173 // Shows the user a SSL client certificate selection dialog. When the user has | 173 // Selects a SSL client certificate and returns it to the |handler|. If no |
174 // made a selection, the dialog will report back to |delegate|. |delegate| is | 174 // certificate was selected NULL is returned to the |handler|. |
175 // notified when the dialog closes in call cases; if the user cancels the | 175 virtual void SelectClientCertificate( |
176 // dialog, we call with a NULL certificate. | |
177 virtual void ShowClientCertificateRequestDialog( | |
178 int render_process_id, | 176 int render_process_id, |
179 int render_view_id, | 177 int render_view_id, |
180 SSLClientAuthHandler* handler) = 0; | 178 SSLClientAuthHandler* handler) = 0; |
181 | 179 |
182 // Adds a newly-generated client cert. The embedder should ensure that there's | 180 // Adds a newly-generated client cert. The embedder should ensure that there's |
183 // a private key for the cert, displays the cert to the user, and adds it upon | 181 // a private key for the cert, displays the cert to the user, and adds it upon |
184 // user approval. | 182 // user approval. |
185 virtual void AddNewCertificate( | 183 virtual void AddNewCertificate( |
186 net::URLRequest* request, | 184 net::URLRequest* request, |
187 net::X509Certificate* cert, | 185 net::X509Certificate* cert, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // This is called on a worker thread. | 270 // This is called on a worker thread. |
273 virtual | 271 virtual |
274 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 272 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
275 const GURL& url) = 0; | 273 const GURL& url) = 0; |
276 #endif | 274 #endif |
277 }; | 275 }; |
278 | 276 |
279 } // namespace content | 277 } // namespace content |
280 | 278 |
281 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 279 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |