| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_NOTIFICATION_DETAILS_H_ | |
| 6 #define CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_NOTIFICATION_DETAILS_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 | |
| 10 namespace net { | |
| 11 class X509Certificate; | |
| 12 class SSLCertRequestInfo; | |
| 13 } | |
| 14 class SSLClientAuthHandler; | |
| 15 | |
| 16 class SSLClientAuthNotificationDetails { | |
| 17 public: | |
| 18 SSLClientAuthNotificationDetails( | |
| 19 const net::SSLCertRequestInfo* cert_request_info, | |
| 20 const SSLClientAuthHandler* handler, | |
| 21 net::X509Certificate* selected_cert); | |
| 22 | |
| 23 bool IsSameHost(const net::SSLCertRequestInfo* cert_request_info) const; | |
| 24 bool IsSameHandler(const SSLClientAuthHandler* handler) const; | |
| 25 net::X509Certificate* selected_cert() const { return selected_cert_; } | |
| 26 | |
| 27 private: | |
| 28 // Notifications are synchronous, so we don't need to hold our own references. | |
| 29 const net::SSLCertRequestInfo* cert_request_info_; | |
| 30 const SSLClientAuthHandler* handler_; | |
| 31 net::X509Certificate* selected_cert_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(SSLClientAuthNotificationDetails); | |
| 34 }; | |
| 35 | |
| 36 #endif // CONTENT_BROWSER_SSL_SSL_CLIENT_AUTH_NOTIFICATION_DETAILS_H_ | |
| OLD | NEW |