| 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 } | 23 } |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 class SSLErrorClassification; | 26 class SSLErrorClassification; |
| 27 | 27 |
| 28 // This class is responsible for showing/hiding the interstitial page that is | 28 // This class is responsible for showing/hiding the interstitial page that is |
| 29 // shown when a certificate error happens. | 29 // shown when a certificate error happens. |
| 30 // It deletes itself when the interstitial page is closed. | 30 // It deletes itself when the interstitial page is closed. |
| 31 class SSLBlockingPage : public SecurityInterstitialPage { | 31 class SSLBlockingPage : public SecurityInterstitialPage { |
| 32 public: | 32 public: |
| 33 // These represent the commands sent from the interstitial JavaScript. They | |
| 34 // are defined in chrome/browser/resources/ssl/ssl_errors_common.js. | |
| 35 // DO NOT reorder or change these without also changing the JavaScript! | |
| 36 enum SSLBlockingPageCommands { | |
| 37 CMD_DONT_PROCEED = 0, | |
| 38 CMD_PROCEED = 1, | |
| 39 CMD_MORE = 2, | |
| 40 CMD_RELOAD = 3, | |
| 41 CMD_HELP = 4, | |
| 42 CMD_CLOCK = 5 | |
| 43 }; | |
| 44 | |
| 45 enum SSLBlockingPageOptionsMask { | 33 enum SSLBlockingPageOptionsMask { |
| 46 // Indicates whether or not the user could (assuming perfect knowledge) | 34 // Indicates whether or not the user could (assuming perfect knowledge) |
| 47 // successfully override the error and still get the security guarantees | 35 // successfully override the error and still get the security guarantees |
| 48 // of TLS. | 36 // of TLS. |
| 49 OVERRIDABLE = 1 << 0, | 37 OVERRIDABLE = 1 << 0, |
| 50 // Indicates whether or not the site the user is trying to connect to has | 38 // Indicates whether or not the site the user is trying to connect to has |
| 51 // requested strict enforcement of certificate validation (e.g. with HTTP | 39 // requested strict enforcement of certificate validation (e.g. with HTTP |
| 52 // Strict-Transport-Security). | 40 // Strict-Transport-Security). |
| 53 STRICT_ENFORCEMENT = 1 << 1, | 41 STRICT_ENFORCEMENT = 1 << 1, |
| 54 // Indicates whether a user decision had been previously made but the | 42 // Indicates whether a user decision had been previously made but the |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // Which type of interstitial this is. | 114 // Which type of interstitial this is. |
| 127 enum SSLInterstitialReason { | 115 enum SSLInterstitialReason { |
| 128 SSL_REASON_SSL, | 116 SSL_REASON_SSL, |
| 129 SSL_REASON_BAD_CLOCK | 117 SSL_REASON_BAD_CLOCK |
| 130 } interstitial_reason_; | 118 } interstitial_reason_; |
| 131 | 119 |
| 132 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); | 120 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); |
| 133 }; | 121 }; |
| 134 | 122 |
| 135 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ | 123 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ |
| OLD | NEW |