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_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 // Returns the connection icon for the given connection |status|. | 147 // Returns the connection icon for the given connection |status|. |
| 148 static const gfx::Image& GetConnectionIcon( | 148 static const gfx::Image& GetConnectionIcon( |
| 149 WebsiteSettings::SiteConnectionStatus status); | 149 WebsiteSettings::SiteConnectionStatus status); |
| 150 | 150 |
| 151 // Returns the icon ID to show along with the first visit information. | 151 // Returns the icon ID to show along with the first visit information. |
| 152 static int GetFirstVisitIconID(const base::string16& first_visit); | 152 static int GetFirstVisitIconID(const base::string16& first_visit); |
| 153 | 153 |
| 154 // Returns the icon to show along with the first visit information. | 154 // Returns the icon to show along with the first visit information. |
| 155 static const gfx::Image& GetFirstVisitIcon(const base::string16& first_visit); | 155 static const gfx::Image& GetFirstVisitIcon(const base::string16& first_visit); |
| 156 | 156 |
| 157 // Returns the ID of a short message for the given connection |status|. | |
| 158 static int GetConnectionSummaryMessageID( | |
|
sashab
2014/10/10 01:15:17
Could have made this function android only (since
| |
| 159 WebsiteSettings::SiteConnectionStatus status); | |
| 160 | |
| 157 // Sets cookie information. | 161 // Sets cookie information. |
| 158 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; | 162 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; |
| 159 | 163 |
| 160 // Sets permision information. | 164 // Sets permision information. |
| 161 virtual void SetPermissionInfo( | 165 virtual void SetPermissionInfo( |
| 162 const PermissionInfoList& permission_info_list) = 0; | 166 const PermissionInfoList& permission_info_list) = 0; |
| 163 | 167 |
| 164 // Sets site identity information. | 168 // Sets site identity information. |
| 165 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; | 169 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; |
| 166 | 170 |
| 167 // Sets the first visited data. |first_visit| can be an empty string. | 171 // Sets the first visited data. |first_visit| can be an empty string. |
| 168 virtual void SetFirstVisit(const base::string16& first_visit) = 0; | 172 virtual void SetFirstVisit(const base::string16& first_visit) = 0; |
| 169 | 173 |
| 170 // Selects the tab with the given |tab_id|. | 174 // Selects the tab with the given |tab_id|. |
| 171 virtual void SetSelectedTab(TabId tab_id) = 0; | 175 virtual void SetSelectedTab(TabId tab_id) = 0; |
| 172 }; | 176 }; |
| 173 | 177 |
| 174 typedef WebsiteSettingsUI::CookieInfoList CookieInfoList; | 178 typedef WebsiteSettingsUI::CookieInfoList CookieInfoList; |
| 175 typedef WebsiteSettingsUI::PermissionInfoList PermissionInfoList; | 179 typedef WebsiteSettingsUI::PermissionInfoList PermissionInfoList; |
| 176 | 180 |
| 177 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ | 181 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ |
| OLD | NEW |