Chromium Code Reviews| 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_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 // information and allows users to change the permissions. |WebsiteSettings| | 29 // information and allows users to change the permissions. |WebsiteSettings| |
| 30 // objects must be created on the heap. They destroy themselves after the UI is | 30 // objects must be created on the heap. They destroy themselves after the UI is |
| 31 // closed. | 31 // closed. |
| 32 class WebsiteSettings : public TabSpecificContentSettings::SiteDataObserver { | 32 class WebsiteSettings : public TabSpecificContentSettings::SiteDataObserver { |
| 33 public: | 33 public: |
| 34 // TODO(palmer): Figure out if it is possible to unify SiteConnectionStatus | 34 // TODO(palmer): Figure out if it is possible to unify SiteConnectionStatus |
| 35 // and SiteIdentityStatus. | 35 // and SiteIdentityStatus. |
| 36 // | 36 // |
| 37 // Status of a connection to a website. | 37 // Status of a connection to a website. |
| 38 enum SiteConnectionStatus { | 38 enum SiteConnectionStatus { |
| 39 SITE_CONNECTION_STATUS_UNKNOWN = 0, // No status available. | 39 SITE_CONNECTION_STATUS_UNKNOWN = 0, // No status available. |
| 40 SITE_CONNECTION_STATUS_ENCRYPTED, // Connection is encrypted. | 40 SITE_CONNECTION_STATUS_ENCRYPTED, // Connection is encrypted. |
| 41 SITE_CONNECTION_STATUS_MIXED_CONTENT, // Non-secure passive content. | 41 SITE_CONNECTION_STATUS_INSECURE_CONTENT, // Non-secure passive content. |
|
felt
2016/08/18 20:40:55
nit: It is not clear anymore that this refers to s
estark
2016/08/19 12:55:50
Done.
| |
| 42 SITE_CONNECTION_STATUS_MIXED_SCRIPT, // Non-secure active content. | 42 SITE_CONNECTION_STATUS_INSECURE_SCRIPT, // Non-secure active content. |
|
felt
2016/08/18 20:40:55
To make sure I understand... mixed content & subre
estark
2016/08/19 12:55:49
Yes, that's right.
| |
| 43 SITE_CONNECTION_STATUS_UNENCRYPTED, // Connection is not encrypted. | 43 SITE_CONNECTION_STATUS_UNENCRYPTED, // Connection is not encrypted. |
| 44 SITE_CONNECTION_STATUS_ENCRYPTED_ERROR, // Connection error occurred. | 44 SITE_CONNECTION_STATUS_ENCRYPTED_ERROR, // Connection error occurred. |
| 45 SITE_CONNECTION_STATUS_INTERNAL_PAGE, // Internal site. | 45 SITE_CONNECTION_STATUS_INTERNAL_PAGE, // Internal site. |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 // Validation status of a website's identity. | 48 // Validation status of a website's identity. |
| 49 enum SiteIdentityStatus { | 49 enum SiteIdentityStatus { |
| 50 // No status about the website's identity available. | 50 // No status about the website's identity available. |
| 51 SITE_IDENTITY_STATUS_UNKNOWN = 0, | 51 SITE_IDENTITY_STATUS_UNKNOWN = 0, |
| 52 // The website provided a valid certificate. | 52 // The website provided a valid certificate. |
| 53 SITE_IDENTITY_STATUS_CERT, | 53 SITE_IDENTITY_STATUS_CERT, |
| 54 // The website provided a valid EV certificate. | 54 // The website provided a valid EV certificate. |
| 55 SITE_IDENTITY_STATUS_EV_CERT, | 55 SITE_IDENTITY_STATUS_EV_CERT, |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 236 ChromeSSLHostStateDelegate* chrome_ssl_host_state_delegate_; | 236 ChromeSSLHostStateDelegate* chrome_ssl_host_state_delegate_; |
| 237 | 237 |
| 238 bool did_revoke_user_ssl_decisions_; | 238 bool did_revoke_user_ssl_decisions_; |
| 239 | 239 |
| 240 Profile* profile_; | 240 Profile* profile_; |
| 241 | 241 |
| 242 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); | 242 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 245 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ |
| OLD | NEW |