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_PAGE_INFO_PAGE_INFO_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_UI_H_ |
6 #define CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_UI_H_ | 6 #define CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_UI_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // Returns the identity icon for the given identity |status|. | 188 // Returns the identity icon for the given identity |status|. |
189 static const gfx::Image& GetIdentityIcon(PageInfo::SiteIdentityStatus status); | 189 static const gfx::Image& GetIdentityIcon(PageInfo::SiteIdentityStatus status); |
190 | 190 |
191 // Returns the connection icon ID for the given connection |status|. | 191 // Returns the connection icon ID for the given connection |status|. |
192 static int GetConnectionIconID(PageInfo::SiteConnectionStatus status); | 192 static int GetConnectionIconID(PageInfo::SiteConnectionStatus status); |
193 | 193 |
194 // Returns the connection icon for the given connection |status|. | 194 // Returns the connection icon for the given connection |status|. |
195 static const gfx::Image& GetConnectionIcon( | 195 static const gfx::Image& GetConnectionIcon( |
196 PageInfo::SiteConnectionStatus status); | 196 PageInfo::SiteConnectionStatus status); |
197 | 197 |
| 198 // Returns the icon for the Certificate area. |
| 199 static const gfx::Image GetCertificateIcon(); |
| 200 |
| 201 // Returns true if the Certificate Viewer link should be shown. |
| 202 static bool ShouldShowCertificateLink(); |
| 203 |
198 // Sets cookie information. | 204 // Sets cookie information. |
199 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; | 205 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; |
200 | 206 |
201 // Sets permission information. | 207 // Sets permission information. |
202 virtual void SetPermissionInfo( | 208 virtual void SetPermissionInfo( |
203 const PermissionInfoList& permission_info_list, | 209 const PermissionInfoList& permission_info_list, |
204 ChosenObjectInfoList chosen_object_info_list) = 0; | 210 ChosenObjectInfoList chosen_object_info_list) = 0; |
205 | 211 |
206 // Sets site identity information. | 212 // Sets site identity information. |
207 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; | 213 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; |
208 }; | 214 }; |
209 | 215 |
210 typedef PageInfoUI::CookieInfoList CookieInfoList; | 216 typedef PageInfoUI::CookieInfoList CookieInfoList; |
211 typedef PageInfoUI::PermissionInfoList PermissionInfoList; | 217 typedef PageInfoUI::PermissionInfoList PermissionInfoList; |
212 typedef PageInfoUI::ChosenObjectInfoList ChosenObjectInfoList; | 218 typedef PageInfoUI::ChosenObjectInfoList ChosenObjectInfoList; |
213 | 219 |
214 #endif // CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_UI_H_ | 220 #endif // CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_UI_H_ |
OLD | NEW |