| 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> |
| 11 | 11 |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "chrome/browser/ui/website_settings/website_settings.h" | 13 #include "chrome/browser/ui/website_settings/website_settings.h" |
| 14 #include "chrome/common/content_settings.h" | 14 #include "chrome/common/content_settings.h" |
| 15 #include "chrome/common/content_settings_types.h" | 15 #include "chrome/common/content_settings_types.h" |
| 16 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 17 | 17 |
| 18 class CookieInfoList; | 18 class CookieInfoList; |
| 19 class GURL; | 19 class GURL; |
| 20 class PermissionInfoList; | 20 class PermissionInfoList; |
| 21 class Profile; | 21 class Profile; |
| 22 class TabContents; | 22 class TabContents; |
| 23 typedef TabContents TabContentsWrapper; | |
| 24 class WebsiteSettings; | 23 class WebsiteSettings; |
| 25 | 24 |
| 26 namespace content { | 25 namespace content { |
| 27 struct SSLStatus; | 26 struct SSLStatus; |
| 28 } | 27 } |
| 29 | 28 |
| 30 // The class |WebsiteSettingsUI| specifies the platform independent | 29 // The class |WebsiteSettingsUI| specifies the platform independent |
| 31 // interface of the website settings UI. The website settings UI displays | 30 // interface of the website settings UI. The website settings UI displays |
| 32 // information and controls for site specific data (local stored objects like | 31 // information and controls for site specific data (local stored objects like |
| 33 // cookies), site specific permissions (location, popup, plugin, etc. | 32 // cookies), site specific permissions (location, popup, plugin, etc. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 int cert_id; | 76 int cert_id; |
| 78 // Status of the site's connection. | 77 // Status of the site's connection. |
| 79 WebsiteSettings::SiteConnectionStatus connection_status; | 78 WebsiteSettings::SiteConnectionStatus connection_status; |
| 80 // 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 |
| 81 // the user. | 80 // the user. |
| 82 std::string connection_status_description; | 81 std::string connection_status_description; |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 virtual ~WebsiteSettingsUI(); | 84 virtual ~WebsiteSettingsUI(); |
| 86 | 85 |
| 86 // Returns the resource ID of the UI string for the given permission |type|. |
| 87 static int PermissionTypeToUIStringID(ContentSettingsType type); |
| 88 |
| 89 // Returns the resource ID of the UI string for the given permission |value|. |
| 90 static int PermissionValueToUIStringID(ContentSetting value); |
| 91 |
| 87 // Sets cookie information. | 92 // Sets cookie information. |
| 88 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; | 93 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; |
| 89 | 94 |
| 90 // Sets permision information. | 95 // Sets permision information. |
| 91 virtual void SetPermissionInfo( | 96 virtual void SetPermissionInfo( |
| 92 const PermissionInfoList& permission_info_list) = 0; | 97 const PermissionInfoList& permission_info_list) = 0; |
| 93 | 98 |
| 94 // Sets site identity information. | 99 // Sets site identity information. |
| 95 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; | 100 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; |
| 96 | 101 |
| 97 // 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. |
| 98 virtual void SetFirstVisit(const string16& first_visit) = 0; | 103 virtual void SetFirstVisit(const string16& first_visit) = 0; |
| 99 }; | 104 }; |
| 100 | 105 |
| 101 class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> { | 106 class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> { |
| 102 }; | 107 }; |
| 103 | 108 |
| 104 class PermissionInfoList | 109 class PermissionInfoList |
| 105 : public std::vector<WebsiteSettingsUI::PermissionInfo> { | 110 : public std::vector<WebsiteSettingsUI::PermissionInfo> { |
| 106 }; | 111 }; |
| 107 | 112 |
| 108 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ | 113 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ |
| OLD | NEW |