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> |
11 | 11 |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "chrome/browser/ui/page_info/page_info.h" | 13 #include "chrome/browser/ui/page_info/page_info.h" |
14 #include "components/content_settings/core/common/content_settings.h" | 14 #include "components/content_settings/core/common/content_settings.h" |
15 #include "components/content_settings/core/common/content_settings_types.h" | 15 #include "components/content_settings/core/common/content_settings_types.h" |
16 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
17 | 17 |
| 18 #if !defined(OS_ANDROID) |
| 19 #include "ui/gfx/image/image_skia.h" |
| 20 #endif |
| 21 |
18 class GURL; | 22 class GURL; |
19 class Profile; | 23 class Profile; |
20 class PageInfo; | 24 class PageInfo; |
21 | 25 |
22 namespace gfx { | 26 namespace gfx { |
23 class Image; | 27 class Image; |
24 } | 28 } |
25 | 29 |
26 namespace net { | 30 namespace net { |
27 class X509Certificate; | 31 class X509Certificate; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // Returns the identity icon for the given identity |status|. | 192 // Returns the identity icon for the given identity |status|. |
189 static const gfx::Image& GetIdentityIcon(PageInfo::SiteIdentityStatus status); | 193 static const gfx::Image& GetIdentityIcon(PageInfo::SiteIdentityStatus status); |
190 | 194 |
191 // Returns the connection icon ID for the given connection |status|. | 195 // Returns the connection icon ID for the given connection |status|. |
192 static int GetConnectionIconID(PageInfo::SiteConnectionStatus status); | 196 static int GetConnectionIconID(PageInfo::SiteConnectionStatus status); |
193 | 197 |
194 // Returns the connection icon for the given connection |status|. | 198 // Returns the connection icon for the given connection |status|. |
195 static const gfx::Image& GetConnectionIcon( | 199 static const gfx::Image& GetConnectionIcon( |
196 PageInfo::SiteConnectionStatus status); | 200 PageInfo::SiteConnectionStatus status); |
197 | 201 |
| 202 #if !defined(OS_ANDROID) |
| 203 // Returns the icon for the Certificate area. |
| 204 static const gfx::ImageSkia GetCertificateIcon(); |
| 205 #endif |
| 206 |
| 207 // Returns true if the Certificate Viewer link should be shown. |
| 208 static bool ShouldShowCertificateLink(); |
| 209 |
198 // Sets cookie information. | 210 // Sets cookie information. |
199 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; | 211 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; |
200 | 212 |
201 // Sets permission information. | 213 // Sets permission information. |
202 virtual void SetPermissionInfo( | 214 virtual void SetPermissionInfo( |
203 const PermissionInfoList& permission_info_list, | 215 const PermissionInfoList& permission_info_list, |
204 ChosenObjectInfoList chosen_object_info_list) = 0; | 216 ChosenObjectInfoList chosen_object_info_list) = 0; |
205 | 217 |
206 // Sets site identity information. | 218 // Sets site identity information. |
207 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; | 219 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; |
208 }; | 220 }; |
209 | 221 |
210 typedef PageInfoUI::CookieInfoList CookieInfoList; | 222 typedef PageInfoUI::CookieInfoList CookieInfoList; |
211 typedef PageInfoUI::PermissionInfoList PermissionInfoList; | 223 typedef PageInfoUI::PermissionInfoList PermissionInfoList; |
212 typedef PageInfoUI::ChosenObjectInfoList ChosenObjectInfoList; | 224 typedef PageInfoUI::ChosenObjectInfoList ChosenObjectInfoList; |
213 | 225 |
214 #endif // CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_UI_H_ | 226 #endif // CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_UI_H_ |
OLD | NEW |