| 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 #include "content/browser/ssl/ssl_client_auth_notification_details.h" | |
| 6 | |
| 7 #include "net/base/ssl_cert_request_info.h" | |
| 8 | |
| 9 SSLClientAuthNotificationDetails::SSLClientAuthNotificationDetails( | |
| 10 const net::SSLCertRequestInfo* cert_request_info, | |
| 11 const SSLClientAuthHandler* handler, | |
| 12 net::X509Certificate* selected_cert) | |
| 13 : cert_request_info_(cert_request_info), | |
| 14 handler_(handler), | |
| 15 selected_cert_(selected_cert) { | |
| 16 } | |
| 17 | |
| 18 bool SSLClientAuthNotificationDetails::IsSameHost( | |
| 19 const net::SSLCertRequestInfo* cert_request_info) const { | |
| 20 // TODO(mattm): should we also compare the DistinguishedNames, or is just | |
| 21 // matching host&port sufficient? | |
| 22 return cert_request_info_->host_and_port == cert_request_info->host_and_port; | |
| 23 } | |
| 24 | |
| 25 bool SSLClientAuthNotificationDetails::IsSameHandler( | |
| 26 const SSLClientAuthHandler* handler) const { | |
| 27 return handler_ == handler; | |
| 28 } | |
| OLD | NEW |