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/website_settings/website_settings.h" | 5 #include "chrome/browser/ui/website_settings/website_settings.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 #if !defined(OS_ANDROID) | 104 #if !defined(OS_ANDROID) |
105 CONTENT_SETTINGS_TYPE_PLUGINS, | 105 CONTENT_SETTINGS_TYPE_PLUGINS, |
106 CONTENT_SETTINGS_TYPE_IMAGES, | 106 CONTENT_SETTINGS_TYPE_IMAGES, |
107 #endif | 107 #endif |
108 CONTENT_SETTINGS_TYPE_POPUPS, | 108 CONTENT_SETTINGS_TYPE_POPUPS, |
109 CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC, | 109 CONTENT_SETTINGS_TYPE_BACKGROUND_SYNC, |
110 CONTENT_SETTINGS_TYPE_KEYGEN, | 110 CONTENT_SETTINGS_TYPE_KEYGEN, |
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_SENSORS, |
114 }; | 115 }; |
115 | 116 |
116 // Determines whether to show permission |type| in the Website Settings UI. Only | 117 // Determines whether to show permission |type| in the Website Settings UI. Only |
117 // applies to permissions listed in |kPermissionType|. | 118 // applies to permissions listed in |kPermissionType|. |
118 bool ShouldShowPermission(ContentSettingsType type) { | 119 bool ShouldShowPermission(ContentSettingsType type) { |
119 #if !defined(OS_ANDROID) | 120 #if !defined(OS_ANDROID) |
120 // Autoplay is Android-only at the moment. | 121 // Autoplay is Android-only at the moment. |
121 if (type == CONTENT_SETTINGS_TYPE_AUTOPLAY) | 122 if (type == CONTENT_SETTINGS_TYPE_AUTOPLAY) |
122 return false; | 123 return false; |
123 #endif | 124 #endif |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 info.connection_status = site_connection_status_; | 793 info.connection_status = site_connection_status_; |
793 info.connection_status_description = | 794 info.connection_status_description = |
794 UTF16ToUTF8(site_connection_details_); | 795 UTF16ToUTF8(site_connection_details_); |
795 info.identity_status = site_identity_status_; | 796 info.identity_status = site_identity_status_; |
796 info.identity_status_description = | 797 info.identity_status_description = |
797 UTF16ToUTF8(site_identity_details_); | 798 UTF16ToUTF8(site_identity_details_); |
798 info.certificate = certificate_; | 799 info.certificate = certificate_; |
799 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_; | 800 info.show_ssl_decision_revoke_button = show_ssl_decision_revoke_button_; |
800 ui_->SetIdentityInfo(info); | 801 ui_->SetIdentityInfo(info); |
801 } | 802 } |
OLD | NEW |