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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 166 |
167 // Informs the embedder that a certificate error has occured. If overridable | 167 // Informs the embedder that a certificate error has occured. If overridable |
168 // is true, the user can ignore the error and continue. If it's false, then | 168 // is true, the user can ignore the error and continue. If it's false, then |
169 // the certificate error is severe and the user isn't allowed to proceed. The | 169 // the certificate error is severe and the user isn't allowed to proceed. The |
170 // embedder can call the callback asynchronously. | 170 // embedder can call the callback asynchronously. |
171 virtual void AllowCertificateError( | 171 virtual void AllowCertificateError( |
172 SSLCertErrorHandler* handler, | 172 SSLCertErrorHandler* handler, |
173 bool overridable, | 173 bool overridable, |
174 Callback2<SSLCertErrorHandler*, bool>::Type* callback) = 0; | 174 Callback2<SSLCertErrorHandler*, bool>::Type* callback) = 0; |
175 | 175 |
176 // Shows the user a SSL client certificate selection dialog. When the user has | 176 // Selects a SSL client certificate and returns it to the |handler|. If no |
177 // made a selection, the dialog will report back to |delegate|. |delegate| is | 177 // certificate was selected NULL is returned to the |handler|. |
178 // notified when the dialog closes in call cases; if the user cancels the | 178 virtual void SelectClientCertificate( |
179 // dialog, we call with a NULL certificate. | |
180 virtual void ShowClientCertificateRequestDialog( | |
181 int render_process_id, | 179 int render_process_id, |
182 int render_view_id, | 180 int render_view_id, |
183 SSLClientAuthHandler* handler) = 0; | 181 SSLClientAuthHandler* handler) = 0; |
184 | 182 |
185 // Adds a newly-generated client cert. The embedder should ensure that there's | 183 // Adds a newly-generated client cert. The embedder should ensure that there's |
186 // a private key for the cert, displays the cert to the user, and adds it upon | 184 // a private key for the cert, displays the cert to the user, and adds it upon |
187 // user approval. | 185 // user approval. |
188 virtual void AddNewCertificate( | 186 virtual void AddNewCertificate( |
189 net::URLRequest* request, | 187 net::URLRequest* request, |
190 net::X509Certificate* cert, | 188 net::X509Certificate* cert, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // This is called on a worker thread. | 277 // This is called on a worker thread. |
280 virtual | 278 virtual |
281 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 279 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
282 const GURL& url) = 0; | 280 const GURL& url) = 0; |
283 #endif | 281 #endif |
284 }; | 282 }; |
285 | 283 |
286 } // namespace content | 284 } // namespace content |
287 | 285 |
288 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 286 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |