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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 struct PermissionInfo { | 66 struct PermissionInfo { |
67 PermissionInfo(); | 67 PermissionInfo(); |
68 // Site permission |type|. | 68 // Site permission |type|. |
69 ContentSettingsType type; | 69 ContentSettingsType type; |
70 // The current value for the permission |type| (e.g. ALLOW or BLOCK). | 70 // The current value for the permission |type| (e.g. ALLOW or BLOCK). |
71 ContentSetting setting; | 71 ContentSetting setting; |
72 // The global default settings for this permission |type|. | 72 // The global default settings for this permission |type|. |
73 ContentSetting default_setting; | 73 ContentSetting default_setting; |
74 // The settings source e.g. user, extensions, policy, ... . | 74 // The settings source e.g. user, extensions, policy, ... . |
75 content_settings::SettingSource source; | 75 content_settings::SettingSource source; |
| 76 // Whether the profile is off the record. |
| 77 bool is_incognito; |
76 }; | 78 }; |
77 | 79 |
78 // |ChosenObjectInfo| contains information about a single |object| of a | 80 // |ChosenObjectInfo| contains information about a single |object| of a |
79 // chooser |type| that the current website has been granted access to. | 81 // chooser |type| that the current website has been granted access to. |
80 struct ChosenObjectInfo { | 82 struct ChosenObjectInfo { |
81 ChosenObjectInfo(const WebsiteSettings::ChooserUIInfo& ui_info, | 83 ChosenObjectInfo(const WebsiteSettings::ChooserUIInfo& ui_info, |
82 scoped_ptr<base::DictionaryValue> object); | 84 scoped_ptr<base::DictionaryValue> object); |
83 ~ChosenObjectInfo(); | 85 ~ChosenObjectInfo(); |
84 // |ui_info| for this chosen object type. | 86 // |ui_info| for this chosen object type. |
85 const WebsiteSettings::ChooserUIInfo& ui_info; | 87 const WebsiteSettings::ChooserUIInfo& ui_info; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 189 |
188 // Selects the tab with the given |tab_id|. | 190 // Selects the tab with the given |tab_id|. |
189 virtual void SetSelectedTab(TabId tab_id) = 0; | 191 virtual void SetSelectedTab(TabId tab_id) = 0; |
190 }; | 192 }; |
191 | 193 |
192 typedef WebsiteSettingsUI::CookieInfoList CookieInfoList; | 194 typedef WebsiteSettingsUI::CookieInfoList CookieInfoList; |
193 typedef WebsiteSettingsUI::PermissionInfoList PermissionInfoList; | 195 typedef WebsiteSettingsUI::PermissionInfoList PermissionInfoList; |
194 typedef WebsiteSettingsUI::ChosenObjectInfoList ChosenObjectInfoList; | 196 typedef WebsiteSettingsUI::ChosenObjectInfoList ChosenObjectInfoList; |
195 | 197 |
196 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ | 198 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ |
OLD | NEW |