Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: content/browser/ssl/ssl_client_auth_notification_details.cc

Issue 7111013: Move most of the core SSL code from chrome to content. The UI code that's specific to Chrome (i.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "chrome/browser/ssl/ssl_client_auth_notification_details.h" 5 #include "content/browser/ssl/ssl_client_auth_notification_details.h"
6 6
7 #include "net/base/ssl_cert_request_info.h" 7 #include "net/base/ssl_cert_request_info.h"
8 8
9 SSLClientAuthNotificationDetails::SSLClientAuthNotificationDetails( 9 SSLClientAuthNotificationDetails::SSLClientAuthNotificationDetails(
10 const net::SSLCertRequestInfo* cert_request_info, 10 const net::SSLCertRequestInfo* cert_request_info,
11 net::X509Certificate* selected_cert) 11 net::X509Certificate* selected_cert)
12 : cert_request_info_(cert_request_info), 12 : cert_request_info_(cert_request_info),
13 selected_cert_(selected_cert) { 13 selected_cert_(selected_cert) {
14 } 14 }
15 15
16 bool SSLClientAuthNotificationDetails::IsSameHost( 16 bool SSLClientAuthNotificationDetails::IsSameHost(
17 const net::SSLCertRequestInfo* cert_request_info) const { 17 const net::SSLCertRequestInfo* cert_request_info) const {
18 // TODO(mattm): should we also compare the DistinguishedNames, or is just 18 // TODO(mattm): should we also compare the DistinguishedNames, or is just
19 // matching host&port sufficient? 19 // matching host&port sufficient?
20 return cert_request_info_->host_and_port == cert_request_info->host_and_port; 20 return cert_request_info_->host_and_port == cert_request_info->host_and_port;
21 } 21 }
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_client_auth_notification_details.h ('k') | content/browser/ssl/ssl_error_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698