| 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_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 void ApplyWhitelist(ContentSettingsType content_type, | 188 void ApplyWhitelist(ContentSettingsType content_type, |
| 189 ContentSetting default_setting); | 189 ContentSetting default_setting); |
| 190 | 190 |
| 191 // Gets the HostContentSettingsMap for the normal profile. | 191 // Gets the HostContentSettingsMap for the normal profile. |
| 192 HostContentSettingsMap* GetContentSettingsMap(); | 192 HostContentSettingsMap* GetContentSettingsMap(); |
| 193 | 193 |
| 194 // Gets the HostContentSettingsMap for the incognito profile, or NULL if there | 194 // Gets the HostContentSettingsMap for the incognito profile, or NULL if there |
| 195 // is no active incognito session. | 195 // is no active incognito session. |
| 196 HostContentSettingsMap* GetOTRContentSettingsMap(); | 196 HostContentSettingsMap* GetOTRContentSettingsMap(); |
| 197 | 197 |
| 198 // Gets the default setting in string form. If |provider_id| is not NULL, the | |
| 199 // id of the provider which provided the default setting is assigned to it. | |
| 200 std::string GetSettingDefaultFromModel(ContentSettingsType type, | |
| 201 std::string* provider_id); | |
| 202 | |
| 203 // Gets the ProtocolHandlerRegistry for the normal profile. | 198 // Gets the ProtocolHandlerRegistry for the normal profile. |
| 204 ProtocolHandlerRegistry* GetProtocolHandlerRegistry(); | 199 ProtocolHandlerRegistry* GetProtocolHandlerRegistry(); |
| 205 | 200 |
| 206 void RefreshFlashMediaSettings(); | 201 void RefreshFlashMediaSettings(); |
| 207 | 202 |
| 208 // Fills in |exceptions| with Values for the given |type| from |map|. | 203 // Fills in |exceptions| with Values for the given |type| from |map|. |
| 209 void GetExceptionsFromHostContentSettingsMap( | 204 void GetExceptionsFromHostContentSettingsMap( |
| 210 const HostContentSettingsMap* map, | 205 const HostContentSettingsMap* map, |
| 211 ContentSettingsType type, | 206 ContentSettingsType type, |
| 212 base::ListValue* exceptions); | 207 base::ListValue* exceptions); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 230 MediaSettingsInfo media_settings_; | 225 MediaSettingsInfo media_settings_; |
| 231 scoped_ptr<content::HostZoomMap::Subscription> host_zoom_map_subscription_; | 226 scoped_ptr<content::HostZoomMap::Subscription> host_zoom_map_subscription_; |
| 232 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; | 227 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; |
| 233 | 228 |
| 234 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); | 229 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); |
| 235 }; | 230 }; |
| 236 | 231 |
| 237 } // namespace options | 232 } // namespace options |
| 238 | 233 |
| 239 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ | 234 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ |
| OLD | NEW |