| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 TAB_ID_PERMISSIONS = 0, | 42 TAB_ID_PERMISSIONS = 0, |
| 43 TAB_ID_CONNECTION, | 43 TAB_ID_CONNECTION, |
| 44 NUM_TAB_IDS, | 44 NUM_TAB_IDS, |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 // |CookieInfo| contains information about the cookies from a specific source. | 47 // |CookieInfo| contains information about the cookies from a specific source. |
| 48 // A source can for example be a specific origin or an entire wildcard domain. | 48 // A source can for example be a specific origin or an entire wildcard domain. |
| 49 struct CookieInfo { | 49 struct CookieInfo { |
| 50 CookieInfo(); | 50 CookieInfo(); |
| 51 | 51 |
| 52 // String describing the cookie source. | |
| 53 std::string cookie_source; | |
| 54 // The number of allowed cookies. | 52 // The number of allowed cookies. |
| 55 int allowed; | 53 int allowed; |
| 56 // The number of blocked cookies. | 54 // The number of blocked cookies. |
| 57 int blocked; | 55 int blocked; |
| 58 | 56 |
| 59 // Whether these cookies are from the current top-level origin as seen by | 57 // Whether these cookies are from the current top-level origin as seen by |
| 60 // the user, or from third-party origins. | 58 // the user, or from third-party origins. |
| 61 bool is_first_party; | 59 bool is_first_party; |
| 62 }; | 60 }; |
| 63 | 61 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 187 |
| 190 // Selects the tab with the given |tab_id|. | 188 // Selects the tab with the given |tab_id|. |
| 191 virtual void SetSelectedTab(TabId tab_id) = 0; | 189 virtual void SetSelectedTab(TabId tab_id) = 0; |
| 192 }; | 190 }; |
| 193 | 191 |
| 194 typedef WebsiteSettingsUI::CookieInfoList CookieInfoList; | 192 typedef WebsiteSettingsUI::CookieInfoList CookieInfoList; |
| 195 typedef WebsiteSettingsUI::PermissionInfoList PermissionInfoList; | 193 typedef WebsiteSettingsUI::PermissionInfoList PermissionInfoList; |
| 196 typedef WebsiteSettingsUI::ChosenObjectInfoList ChosenObjectInfoList; | 194 typedef WebsiteSettingsUI::ChosenObjectInfoList ChosenObjectInfoList; |
| 197 | 195 |
| 198 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ | 196 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ |
| OLD | NEW |