| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_cert_error_handler.h" | 5 #include "content/browser/ssl/ssl_cert_error_handler.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ssl/ssl_manager.h" | |
| 8 #include "chrome/browser/ssl/ssl_policy.h" | |
| 9 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 7 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 8 #include "content/browser/ssl/ssl_policy.h" |
| 10 #include "net/base/x509_certificate.h" | 9 #include "net/base/x509_certificate.h" |
| 11 | 10 |
| 12 SSLCertErrorHandler::SSLCertErrorHandler( | 11 SSLCertErrorHandler::SSLCertErrorHandler( |
| 13 ResourceDispatcherHost* rdh, | 12 ResourceDispatcherHost* rdh, |
| 14 net::URLRequest* request, | 13 net::URLRequest* request, |
| 15 ResourceType::Type resource_type, | 14 ResourceType::Type resource_type, |
| 16 int cert_error, | 15 int cert_error, |
| 17 net::X509Certificate* cert) | 16 net::X509Certificate* cert) |
| 18 : SSLErrorHandler(rdh, request, resource_type), | 17 : SSLErrorHandler(rdh, request, resource_type), |
| 19 cert_error_(cert_error) { | 18 cert_error_(cert_error) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 31 | 30 |
| 32 void SSLCertErrorHandler::OnDispatchFailed() { | 31 void SSLCertErrorHandler::OnDispatchFailed() { |
| 33 CancelRequest(); | 32 CancelRequest(); |
| 34 } | 33 } |
| 35 | 34 |
| 36 void SSLCertErrorHandler::OnDispatched() { | 35 void SSLCertErrorHandler::OnDispatched() { |
| 37 manager_->policy()->OnCertError(this); | 36 manager_->policy()->OnCertError(this); |
| 38 } | 37 } |
| 39 | 38 |
| 40 SSLCertErrorHandler::~SSLCertErrorHandler() {} | 39 SSLCertErrorHandler::~SSLCertErrorHandler() {} |
| OLD | NEW |