| 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 #ifndef CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_ | 6 #define CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 11 #include "content/browser/ssl/ssl_error_handler.h" | 12 #include "content/browser/ssl/ssl_error_handler.h" |
| 12 #include "net/ssl/ssl_info.h" | 13 #include "net/ssl/ssl_info.h" |
| 13 | 14 |
| 14 namespace content { | 15 namespace content { |
| 15 | 16 |
| 16 // A CertError represents an error that occurred with the certificate in an | 17 // A CertError represents an error that occurred with the certificate in an |
| 17 // SSL session. A CertError object exists both on the IO thread and on the UI | 18 // SSL session. A CertError object exists both on the IO thread and on the UI |
| 18 // thread and allows us to cancel/continue a request it is associated with. | 19 // thread and allows us to cancel/continue a request it is associated with. |
| 19 class SSLCertErrorHandler : public SSLErrorHandler { | 20 class SSLCertErrorHandler : public SSLErrorHandler { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 45 const int cert_error_; // The error we represent. | 46 const int cert_error_; // The error we represent. |
| 46 const bool fatal_; // True if the error is from a host requiring | 47 const bool fatal_; // True if the error is from a host requiring |
| 47 // certificate errors to be fatal. | 48 // certificate errors to be fatal. |
| 48 | 49 |
| 49 DISALLOW_COPY_AND_ASSIGN(SSLCertErrorHandler); | 50 DISALLOW_COPY_AND_ASSIGN(SSLCertErrorHandler); |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 } // namespace content | 53 } // namespace content |
| 53 | 54 |
| 54 #endif // CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_ | 55 #endif // CONTENT_BROWSER_SSL_SSL_CERT_ERROR_HANDLER_H_ |
| OLD | NEW |