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/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "base/task/cancelable_task_tracker.h" | 10 #include "base/task/cancelable_task_tracker.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 SITE_IDENTITY_STATUS_ADMIN_PROVIDED_CERT, | 71 SITE_IDENTITY_STATUS_ADMIN_PROVIDED_CERT, |
| 72 // The website provided a valid certificate, but the certificate or chain | 72 // The website provided a valid certificate, but the certificate or chain |
| 73 // is using a deprecated signature algorithm. | 73 // is using a deprecated signature algorithm. |
| 74 SITE_IDENTITY_STATUS_DEPRECATED_SIGNATURE_ALGORITHM, | 74 SITE_IDENTITY_STATUS_DEPRECATED_SIGNATURE_ALGORITHM, |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 // UMA statistics for WebsiteSettings. Do not reorder or remove existing | 77 // UMA statistics for WebsiteSettings. Do not reorder or remove existing |
| 78 // fields. | 78 // fields. |
| 79 enum WebsiteSettingsAction { | 79 enum WebsiteSettingsAction { |
| 80 WEBSITE_SETTINGS_OPENED = 0, | 80 WEBSITE_SETTINGS_OPENED = 0, |
| 81 WEBSITE_SETTINGS_PERMISSIONS_TAB_SELECTED, | 81 WEBSITE_SETTINGS_PERMISSIONS_TAB_SELECTED = 1, |
| 82 WEBSITE_SETTINGS_CONNECTION_TAB_SELECTED, | 82 WEBSITE_SETTINGS_CONNECTION_TAB_SELECTED = 2, |
| 83 WEBSITE_SETTINGS_CONNECTION_TAB_SHOWN_IMMEDIATELY, | 83 WEBSITE_SETTINGS_CONNECTION_TAB_SHOWN_IMMEDIATELY = 3, |
| 84 WEBSITE_SETTINGS_COOKIES_DIALOG_OPENED, | 84 WEBSITE_SETTINGS_COOKIES_DIALOG_OPENED = 4, |
| 85 WEBSITE_SETTINGS_CHANGED_PERMISSION, | 85 WEBSITE_SETTINGS_CHANGED_PERMISSION = 5, |
| 86 WEBSITE_SETTINGS_CERTIFICATE_DIALOG_OPENED, | 86 WEBSITE_SETTINGS_CERTIFICATE_DIALOG_OPENED = 6, |
| 87 WEBSITE_SETTINGS_TRANSPARENCY_VIEWER_OPENED, | 87 // No longer used; indicated a UI viewer for SCTs |
|
Peter Kasting
2015/05/26 20:16:55
Nit: trailing period
| |
| 88 WEBSITE_SETTINGS_CONNECTION_HELP_OPENED, | 88 // WEBSITE_SETTINGS_TRANSPARENCY_VIEWER_OPENED = 7, |
| 89 WEBSITE_SETTINGS_SITE_SETTINGS_OPENED, | 89 WEBSITE_SETTINGS_CONNECTION_HELP_OPENED = 8, |
| 90 WEBSITE_SETTINGS_SITE_SETTINGS_OPENED = 9, | |
| 90 WEBSITE_SETTINGS_COUNT | 91 WEBSITE_SETTINGS_COUNT |
|
felt
2015/05/26 20:38:12
Should the value of WEBSITE_SETTINGS_COUNT also be
Ryan Sleevi
2015/05/26 20:47:50
A quick scan of histogram enums with explicit valu
felt
2015/05/26 20:50:50
sg
| |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 // Creates a WebsiteSettings for the passed |url| using the given |ssl| status | 94 // Creates a WebsiteSettings for the passed |url| using the given |ssl| status |
| 94 // object to determine the status of the site's connection. The | 95 // object to determine the status of the site's connection. The |
| 95 // |WebsiteSettings| takes ownership of the |ui|. | 96 // |WebsiteSettings| takes ownership of the |ui|. |
| 96 WebsiteSettings(WebsiteSettingsUI* ui, | 97 WebsiteSettings(WebsiteSettingsUI* ui, |
| 97 Profile* profile, | 98 Profile* profile, |
| 98 TabSpecificContentSettings* tab_specific_content_settings, | 99 TabSpecificContentSettings* tab_specific_content_settings, |
| 99 InfoBarService* infobar_service, | 100 InfoBarService* infobar_service, |
| 100 const GURL& url, | 101 const GURL& url, |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 241 // Service for managing SSL error page bypasses. Used to revoke bypass | 242 // Service for managing SSL error page bypasses. Used to revoke bypass |
| 242 // decisions by users. | 243 // decisions by users. |
| 243 ChromeSSLHostStateDelegate* chrome_ssl_host_state_delegate_; | 244 ChromeSSLHostStateDelegate* chrome_ssl_host_state_delegate_; |
| 244 | 245 |
| 245 bool did_revoke_user_ssl_decisions_; | 246 bool did_revoke_user_ssl_decisions_; |
| 246 | 247 |
| 247 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); | 248 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings); |
| 248 }; | 249 }; |
| 249 | 250 |
| 250 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ | 251 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_H_ |
| OLD | NEW |