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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 std::string identity_status_description; | 74 std::string identity_status_description; |
| 75 // The ID is the server certificate of a secure connection or 0. | 75 // The ID is the server certificate of a secure connection or 0. |
| 76 int cert_id; | 76 int cert_id; |
| 77 // Status of the site's connection. | 77 // Status of the site's connection. |
| 78 WebsiteSettings::SiteConnectionStatus connection_status; | 78 WebsiteSettings::SiteConnectionStatus connection_status; |
| 79 // Textual description of the site's connection status that is displayed to | 79 // Textual description of the site's connection status that is displayed to |
| 80 // the user. | 80 // the user. |
| 81 std::string connection_status_description; | 81 std::string connection_status_description; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 // Returns the resource ID of the UI string for the given permission |type|. | |
| 85 static int PermissionTypeToUIStringID(ContentSettingsType type); | |
|
tfarina
2012/06/06 17:01:30
these two static functions should be declared afte
markusheintz_
2012/06/07 20:10:38
Done. Thanks a lot for including the bug.
| |
| 86 | |
| 87 // Returns the resource ID of the UI string for the given permission |value|. | |
| 88 static int PermissionValueToUIStringID(ContentSetting value); | |
| 89 | |
| 84 virtual ~WebsiteSettingsUI(); | 90 virtual ~WebsiteSettingsUI(); |
| 85 | 91 |
| 86 // Sets cookie information. | 92 // Sets cookie information. |
| 87 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; | 93 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; |
| 88 | 94 |
| 89 // Sets permision information. | 95 // Sets permision information. |
| 90 virtual void SetPermissionInfo( | 96 virtual void SetPermissionInfo( |
| 91 const PermissionInfoList& permission_info_list) = 0; | 97 const PermissionInfoList& permission_info_list) = 0; |
| 92 | 98 |
| 93 // Sets site identity information. | 99 // Sets site identity information. |
| 94 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; | 100 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; |
| 95 | 101 |
| 96 // Sets the first visited data. |first_visit| can be an empty string. | 102 // Sets the first visited data. |first_visit| can be an empty string. |
| 97 virtual void SetFirstVisit(const string16& first_visit) = 0; | 103 virtual void SetFirstVisit(const string16& first_visit) = 0; |
| 98 }; | 104 }; |
| 99 | 105 |
| 100 class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> { | 106 class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> { |
| 101 }; | 107 }; |
| 102 | 108 |
| 103 class PermissionInfoList | 109 class PermissionInfoList |
| 104 : public std::vector<WebsiteSettingsUI::PermissionInfo> { | 110 : public std::vector<WebsiteSettingsUI::PermissionInfo> { |
| 105 }; | 111 }; |
| 106 | 112 |
| 107 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ | 113 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ |
| OLD | NEW |