Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ | 5 #ifndef COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ |
| 6 #define COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ | 6 #define COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 // Contains the security state relevant to computing the SecurityInfo | 141 // Contains the security state relevant to computing the SecurityInfo |
| 142 // for a page. This is the input to GetSecurityInfo() provided by the | 142 // for a page. This is the input to GetSecurityInfo() provided by the |
| 143 // model's client. | 143 // model's client. |
| 144 struct VisibleSecurityState { | 144 struct VisibleSecurityState { |
| 145 VisibleSecurityState(); | 145 VisibleSecurityState(); |
| 146 ~VisibleSecurityState(); | 146 ~VisibleSecurityState(); |
| 147 bool operator==(const VisibleSecurityState& other) const; | 147 bool operator==(const VisibleSecurityState& other) const; |
| 148 GURL url; | 148 GURL url; |
| 149 // The baseline SecurityLevel describing the page or request before | 149 |
| 150 // any SecurityStateModel policies have been applied. | |
| 151 SecurityLevel initial_security_level; | |
|
estark
2016/10/06 22:00:17
|initial_security_level| used to be the way that C
felt
2016/10/07 03:30:48
I prefer the new way, I find it more self explanat
| |
| 152 // True if the page fails the browser's malware or phishing checks. | 150 // True if the page fails the browser's malware or phishing checks. |
| 153 bool fails_malware_check; | 151 bool fails_malware_check; |
| 154 | 152 |
| 155 // CONNECTION SECURITY FIELDS | 153 // CONNECTION SECURITY FIELDS |
| 156 // Whether the connection security fields are initialized. | 154 // Whether the connection security fields are initialized. |
| 157 bool connection_info_initialized; | 155 bool connection_info_initialized; |
| 158 // The following fields contain information about the connection | 156 // The following fields contain information about the connection |
| 159 // used to load the page or request. | 157 // used to load the page or request. |
| 160 scoped_refptr<net::X509Certificate> certificate; | 158 scoped_refptr<net::X509Certificate> certificate; |
| 161 net::CertStatus cert_status; | 159 net::CertStatus cert_status; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 199 | 197 |
| 200 private: | 198 private: |
| 201 SecurityStateModelClient* client_; | 199 SecurityStateModelClient* client_; |
| 202 | 200 |
| 203 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel); | 201 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel); |
| 204 }; | 202 }; |
| 205 | 203 |
| 206 } // namespace security_state | 204 } // namespace security_state |
| 207 | 205 |
| 208 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ | 206 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ |
| OLD | NEW |