| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/dom_ui/options/options_ui.h" | 9 #include "chrome/browser/dom_ui/options/options_ui.h" |
| 10 #include "chrome/browser/plugin_data_remover_helper.h" | 10 #include "chrome/browser/plugin_data_remover_helper.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void RemoveException(const ListValue* args); | 74 void RemoveException(const ListValue* args); |
| 75 | 75 |
| 76 // Changes the value of an exception. Called after the user is done editing an | 76 // Changes the value of an exception. Called after the user is done editing an |
| 77 // exception. | 77 // exception. |
| 78 void SetException(const ListValue* args); | 78 void SetException(const ListValue* args); |
| 79 | 79 |
| 80 // Called to decide whether a given pattern is valid, or if it should be | 80 // Called to decide whether a given pattern is valid, or if it should be |
| 81 // rejected. Called while the user is editing an exception pattern. | 81 // rejected. Called while the user is editing an exception pattern. |
| 82 void CheckExceptionPatternValidity(const ListValue* args); | 82 void CheckExceptionPatternValidity(const ListValue* args); |
| 83 | 83 |
| 84 // Show the about:plugins page in a new tab. | |
| 85 void OpenPluginsTab(const ListValue* args); | |
| 86 | |
| 87 // Sets the global 3rd party cookies pref. | 84 // Sets the global 3rd party cookies pref. |
| 88 void SetAllowThirdPartyCookies(const ListValue* args); | 85 void SetAllowThirdPartyCookies(const ListValue* args); |
| 89 | 86 |
| 90 // Utility functions --------------------------------------------------------- | 87 // Utility functions --------------------------------------------------------- |
| 91 | 88 |
| 92 // Gets the HostContentSettingsMap for the normal profile. | 89 // Gets the HostContentSettingsMap for the normal profile. |
| 93 HostContentSettingsMap* GetContentSettingsMap(); | 90 HostContentSettingsMap* GetContentSettingsMap(); |
| 94 | 91 |
| 95 // Gets the HostContentSettingsMap for the incognito profile, or NULL if there | 92 // Gets the HostContentSettingsMap for the incognito profile, or NULL if there |
| 96 // is no active incognito session. | 93 // is no active incognito session. |
| 97 HostContentSettingsMap* GetOTRContentSettingsMap(); | 94 HostContentSettingsMap* GetOTRContentSettingsMap(); |
| 98 | 95 |
| 99 // Gets the default setting in string form. | 96 // Gets the default setting in string form. |
| 100 std::string GetSettingDefaultFromModel(ContentSettingsType type); | 97 std::string GetSettingDefaultFromModel(ContentSettingsType type); |
| 101 | 98 |
| 102 // Returns true if the default setting for the given content settings type | 99 // Returns true if the default setting for the given content settings type |
| 103 // |type| is managed. | 100 // |type| is managed. |
| 104 bool GetDefaultSettingManagedFromModel(ContentSettingsType type); | 101 bool GetDefaultSettingManagedFromModel(ContentSettingsType type); |
| 105 | 102 |
| 106 // Member variables --------------------------------------------------------- | 103 // Member variables --------------------------------------------------------- |
| 107 | 104 |
| 108 NotificationRegistrar notification_registrar_; | 105 NotificationRegistrar notification_registrar_; |
| 109 PrefChangeRegistrar pref_change_registrar_; | 106 PrefChangeRegistrar pref_change_registrar_; |
| 110 PluginDataRemoverHelper clear_plugin_lso_data_enabled_; | 107 PluginDataRemoverHelper clear_plugin_lso_data_enabled_; |
| 111 | 108 |
| 112 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); | 109 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); |
| 113 }; | 110 }; |
| 114 | 111 |
| 115 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ | 112 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ |
| OLD | NEW |