| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/ssl/ssl_cert_error_handler.h" | 5 #include "content/browser/ssl/ssl_cert_error_handler.h" |
| 6 | 6 |
| 7 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" | 7 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" |
| 8 #include "content/browser/ssl/ssl_manager.h" | 8 #include "content/browser/ssl/ssl_manager.h" |
| 9 #include "content/browser/ssl/ssl_policy.h" | 9 #include "content/browser/ssl/ssl_policy.h" |
| 10 #include "net/base/cert_status_flags.h" | 10 #include "net/base/cert_status_flags.h" |
| 11 #include "net/base/x509_certificate.h" | 11 #include "net/base/x509_certificate.h" |
| 12 | 12 |
| 13 using content::ResourceDispatcherHostImpl; | 13 using content::ResourceDispatcherHostImpl; |
| 14 | 14 |
| 15 SSLCertErrorHandler::SSLCertErrorHandler( | 15 SSLCertErrorHandler::SSLCertErrorHandler( |
| 16 base::WeakPtr<Delegate> delegate, | 16 const base::WeakPtr<Delegate>& delegate, |
| 17 const content::GlobalRequestID& id, | 17 const content::GlobalRequestID& id, |
| 18 ResourceType::Type resource_type, | 18 ResourceType::Type resource_type, |
| 19 const GURL& url, | 19 const GURL& url, |
| 20 int render_process_id, | 20 int render_process_id, |
| 21 int render_view_id, | 21 int render_view_id, |
| 22 const net::SSLInfo& ssl_info, | 22 const net::SSLInfo& ssl_info, |
| 23 bool fatal) | 23 bool fatal) |
| 24 : SSLErrorHandler(delegate, id, resource_type, url, render_process_id, | 24 : SSLErrorHandler(delegate, id, resource_type, url, render_process_id, |
| 25 render_view_id), | 25 render_view_id), |
| 26 ssl_info_(ssl_info), | 26 ssl_info_(ssl_info), |
| (...skipping 14 matching lines...) Expand all Loading... |
| 41 } else { | 41 } else { |
| 42 CancelRequest(); | 42 CancelRequest(); |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 | 45 |
| 46 void SSLCertErrorHandler::OnDispatched() { | 46 void SSLCertErrorHandler::OnDispatched() { |
| 47 manager_->policy()->OnCertError(this); | 47 manager_->policy()->OnCertError(this); |
| 48 } | 48 } |
| 49 | 49 |
| 50 SSLCertErrorHandler::~SSLCertErrorHandler() {} | 50 SSLCertErrorHandler::~SSLCertErrorHandler() {} |
| OLD | NEW |