| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_ERROR_CLASSIFICATION_H_ | 5 #ifndef CHROME_BROWSER_SSL_SSL_ERROR_CLASSIFICATION_H_ |
| 6 #define CHROME_BROWSER_SSL_SSL_ERROR_CLASSIFICATION_H_ | 6 #define CHROME_BROWSER_SSL_SSL_ERROR_CLASSIFICATION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 static Tokens Tokenize(const std::string& name); | 123 static Tokens Tokenize(const std::string& name); |
| 124 | 124 |
| 125 float CalculateScoreTimePassedSinceExpiry() const; | 125 float CalculateScoreTimePassedSinceExpiry() const; |
| 126 float CalculateScoreEnvironments() const; | 126 float CalculateScoreEnvironments() const; |
| 127 | 127 |
| 128 // content::NotificationObserver: | 128 // content::NotificationObserver: |
| 129 virtual void Observe( | 129 virtual void Observe( |
| 130 int type, | 130 int type, |
| 131 const content::NotificationSource& source, | 131 const content::NotificationSource& source, |
| 132 const content::NotificationDetails& details) OVERRIDE; | 132 const content::NotificationDetails& details) override; |
| 133 | 133 |
| 134 content::WebContents* web_contents_; | 134 content::WebContents* web_contents_; |
| 135 // This stores the current time. | 135 // This stores the current time. |
| 136 base::Time current_time_; | 136 base::Time current_time_; |
| 137 const GURL request_url_; | 137 const GURL request_url_; |
| 138 int cert_error_; | 138 int cert_error_; |
| 139 // This stores the certificate. | 139 // This stores the certificate. |
| 140 const net::X509Certificate& cert_; | 140 const net::X509Certificate& cert_; |
| 141 // Is captive portal detection enabled? | 141 // Is captive portal detection enabled? |
| 142 bool captive_portal_detection_enabled_; | 142 bool captive_portal_detection_enabled_; |
| 143 // Did the probe complete before the interstitial was closed? | 143 // Did the probe complete before the interstitial was closed? |
| 144 bool captive_portal_probe_completed_; | 144 bool captive_portal_probe_completed_; |
| 145 // Did the captive portal probe receive an error or get a non-HTTP response? | 145 // Did the captive portal probe receive an error or get a non-HTTP response? |
| 146 bool captive_portal_no_response_; | 146 bool captive_portal_no_response_; |
| 147 // Was a captive portal detected? | 147 // Was a captive portal detected? |
| 148 bool captive_portal_detected_; | 148 bool captive_portal_detected_; |
| 149 | 149 |
| 150 content::NotificationRegistrar registrar_; | 150 content::NotificationRegistrar registrar_; |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 #endif // CHROME_BROWSER_SSL_SSL_ERROR_CLASSIFICATION_H_ | 153 #endif // CHROME_BROWSER_SSL_SSL_ERROR_CLASSIFICATION_H_ |
| OLD | NEW |