| 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 CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ | 5 #ifndef CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ |
| 6 #define CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ | 6 #define CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 namespace extensions { | 23 namespace extensions { |
| 24 class ExperienceSamplingEvent; | 24 class ExperienceSamplingEvent; |
| 25 } | 25 } |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 namespace policy { | 28 namespace policy { |
| 29 class PolicyTest_SSLErrorOverridingDisallowed_Test; | 29 class PolicyTest_SSLErrorOverridingDisallowed_Test; |
| 30 } | 30 } |
| 31 | 31 |
| 32 class CertReportHelper; | 32 class CertReportHelper; |
| 33 class SSLErrorClassification; | 33 class ChromeErrorClassification; |
| 34 | 34 |
| 35 // This class is responsible for showing/hiding the interstitial page that is | 35 // This class is responsible for showing/hiding the interstitial page that is |
| 36 // shown when a certificate error happens. | 36 // shown when a certificate error happens. |
| 37 // It deletes itself when the interstitial page is closed. | 37 // It deletes itself when the interstitial page is closed. |
| 38 class SSLBlockingPage : public SecurityInterstitialPage { | 38 class SSLBlockingPage : public SecurityInterstitialPage { |
| 39 public: | 39 public: |
| 40 enum SSLBlockingPageOptionsMask { | 40 enum SSLBlockingPageOptionsMask { |
| 41 // Indicates whether or not the user could (assuming perfect knowledge) | 41 // Indicates whether or not the user could (assuming perfect knowledge) |
| 42 // successfully override the error and still get the security guarantees | 42 // successfully override the error and still get the security guarantees |
| 43 // of TLS. | 43 // of TLS. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // danger_overridable_) By typing the word "danger". | 114 // danger_overridable_) By typing the word "danger". |
| 115 // - This is an undocumented workaround. | 115 // - This is an undocumented workaround. |
| 116 // - This can be set to "false" dynamically to prevent the behaviour. | 116 // - This can be set to "false" dynamically to prevent the behaviour. |
| 117 const bool overridable_; | 117 const bool overridable_; |
| 118 bool danger_overridable_; | 118 bool danger_overridable_; |
| 119 // Has the site requested strict enforcement of certificate errors? | 119 // Has the site requested strict enforcement of certificate errors? |
| 120 const bool strict_enforcement_; | 120 const bool strict_enforcement_; |
| 121 // Did the user previously allow a bad certificate but the decision has now | 121 // Did the user previously allow a bad certificate but the decision has now |
| 122 // expired? | 122 // expired? |
| 123 const bool expired_but_previously_allowed_; | 123 const bool expired_but_previously_allowed_; |
| 124 scoped_ptr<SSLErrorClassification> ssl_error_classification_; | 124 scoped_ptr<ChromeErrorClassification> ssl_error_classification_; |
| 125 | 125 |
| 126 // The time at which the interstitial was triggered. The interstitial | 126 // The time at which the interstitial was triggered. The interstitial |
| 127 // calculates all times relative to this. | 127 // calculates all times relative to this. |
| 128 const base::Time time_triggered_; | 128 const base::Time time_triggered_; |
| 129 | 129 |
| 130 scoped_ptr<CertReportHelper> cert_report_helper_; | 130 scoped_ptr<CertReportHelper> cert_report_helper_; |
| 131 | 131 |
| 132 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); | 132 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ | 135 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ |
| OLD | NEW |