| 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 #include "chrome/browser/ui/page_info/page_info.h" | 5 #include "chrome/browser/ui/page_info/page_info.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 CONTENT_SETTINGS_TYPE_JAVASCRIPT, | 104 CONTENT_SETTINGS_TYPE_JAVASCRIPT, |
| 105 #if !defined(OS_ANDROID) | 105 #if !defined(OS_ANDROID) |
| 106 CONTENT_SETTINGS_TYPE_PLUGINS, | 106 CONTENT_SETTINGS_TYPE_PLUGINS, |
| 107 CONTENT_SETTINGS_TYPE_IMAGES, | 107 CONTENT_SETTINGS_TYPE_IMAGES, |
| 108 #endif | 108 #endif |
| 109 CONTENT_SETTINGS_TYPE_POPUPS, | 109 CONTENT_SETTINGS_TYPE_POPUPS, |
| 110 CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC, | 110 CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC, |
| 111 CONTENT_SETTINGS_TYPE_AUTOMATIC_DOWNLOADS, | 111 CONTENT_SETTINGS_TYPE_AUTOMATIC_DOWNLOADS, |
| 112 CONTENT_SETTINGS_TYPE_AUTOPLAY, | 112 CONTENT_SETTINGS_TYPE_AUTOPLAY, |
| 113 CONTENT_SETTINGS_TYPE_MIDI_SYSEX, | 113 CONTENT_SETTINGS_TYPE_MIDI_SYSEX, |
| 114 CONTENT_SETTINGS_TYPE_SUBRESOURCE_FILTER, | 114 CONTENT_SETTINGS_TYPE_SENSORS, |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 // Determines whether to show permission |type| in the Page Info UI. Only | 117 // Determines whether to show permission |type| in the Page Info UI. Only |
| 118 // applies to permissions listed in |kPermissionType|. | 118 // applies to permissions listed in |kPermissionType|. |
| 119 bool ShouldShowPermission(ContentSettingsType type) { | 119 bool ShouldShowPermission(ContentSettingsType type) { |
| 120 #if !defined(OS_ANDROID) | 120 #if !defined(OS_ANDROID) |
| 121 // Autoplay is Android-only at the moment. | 121 // Autoplay is Android-only at the moment. |
| 122 if (type == CONTENT_SETTINGS_TYPE_AUTOPLAY) | 122 if (type == CONTENT_SETTINGS_TYPE_AUTOPLAY) |
| 123 return false; | 123 return false; |
| 124 #endif | 124 #endif |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 info.site_identity = UTF16ToUTF8(GetSimpleSiteName(site_url_)); | 769 info.site_identity = UTF16ToUTF8(GetSimpleSiteName(site_url_)); |
| 770 | 770 |
| 771 info.connection_status = site_connection_status_; | 771 info.connection_status = site_connection_status_; |
| 772 info.connection_status_description = UTF16ToUTF8(site_connection_details_); | 772 info.connection_status_description = UTF16ToUTF8(site_connection_details_); |
| 773 info.identity_status = site_identity_status_; | 773 info.identity_status = site_identity_status_; |
| 774 info.identity_status_description = UTF16ToUTF8(site_identity_details_); | 774 info.identity_status_description = UTF16ToUTF8(site_identity_details_); |
| 775 info.certificate = certificate_; | 775 info.certificate = certificate_; |
| 776 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_; | 776 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_; |
| 777 ui_->SetIdentityInfo(info); | 777 ui_->SetIdentityInfo(info); |
| 778 } | 778 } |
| OLD | NEW |