| 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_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ |
| 6 #define CHROME_BROWSER_UI_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/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 TabContentsWrapper; | 22 class TabContentsWrapper; |
| 23 class WebsiteSettings; | 23 class WebsiteSettings; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 virtual ~WebsiteSettingsUI(); | 84 virtual ~WebsiteSettingsUI(); |
| 85 | 85 |
| 86 // Sets the |presenter| of the WebsiteSettingsUI that is responsible for | |
| 87 // setting the data to display in the UI. | |
| 88 virtual void SetPresenter(WebsiteSettings* presenter) = 0; | |
| 89 | |
| 90 // Sets cookie information. | 86 // Sets cookie information. |
| 91 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; | 87 virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0; |
| 92 | 88 |
| 93 // Sets permision information. | 89 // Sets permision information. |
| 94 virtual void SetPermissionInfo( | 90 virtual void SetPermissionInfo( |
| 95 const PermissionInfoList& permission_info_list) = 0; | 91 const PermissionInfoList& permission_info_list) = 0; |
| 96 | 92 |
| 97 // Sets site identity information. | 93 // Sets site identity information. |
| 98 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; | 94 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; |
| 99 | 95 |
| 100 // Sets the first visited data. |first_visit| can be an empty string. | 96 // Sets the first visited data. |first_visit| can be an empty string. |
| 101 virtual void SetFirstVisit(const string16& first_visit) = 0; | 97 virtual void SetFirstVisit(const string16& first_visit) = 0; |
| 102 }; | 98 }; |
| 103 | 99 |
| 104 class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> { | 100 class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> { |
| 105 }; | 101 }; |
| 106 | 102 |
| 107 class PermissionInfoList | 103 class PermissionInfoList |
| 108 : public std::vector<WebsiteSettingsUI::PermissionInfo> { | 104 : public std::vector<WebsiteSettingsUI::PermissionInfo> { |
| 109 }; | 105 }; |
| 110 | 106 |
| 111 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_UI_H_ | 107 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ |
| OLD | NEW |