| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/plugin_data_remover_helper.h" | 9 #include "chrome/browser/plugin_data_remover_helper.h" |
| 10 #include "chrome/browser/prefs/pref_change_registrar.h" | 10 #include "chrome/browser/prefs/pref_change_registrar.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 const NotificationDetails& details); | 33 const NotificationDetails& details); |
| 34 | 34 |
| 35 // Gets a string identifier for the group name, for use in HTML. | 35 // Gets a string identifier for the group name, for use in HTML. |
| 36 static std::string ContentSettingsTypeToGroupName(ContentSettingsType type); | 36 static std::string ContentSettingsTypeToGroupName(ContentSettingsType type); |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 // Functions that call into the page ----------------------------------------- | 39 // Functions that call into the page ----------------------------------------- |
| 40 | 40 |
| 41 // Updates the page with the default settings (allow, ask, block, etc.) | 41 // Updates the page with the default settings (allow, ask, block, etc.) |
| 42 void UpdateSettingDefaultFromModel(ContentSettingsType type); | 42 void UpdateSettingDefaultFromModel(ContentSettingsType type); |
| 43 // Updates the state of the "Clear plugin LSO data on exit" checkbox. | |
| 44 void UpdateClearPluginLSOData(); | |
| 45 | 43 |
| 46 // Clobbers and rebuilds the specific content setting type exceptions table. | 44 // Clobbers and rebuilds the specific content setting type exceptions table. |
| 47 void UpdateExceptionsViewFromModel(ContentSettingsType type); | 45 void UpdateExceptionsViewFromModel(ContentSettingsType type); |
| 48 // Clobbers and rebuilds the specific content setting type exceptions | 46 // Clobbers and rebuilds the specific content setting type exceptions |
| 49 // OTR table. | 47 // OTR table. |
| 50 void UpdateOTRExceptionsViewFromModel(ContentSettingsType type); | 48 void UpdateOTRExceptionsViewFromModel(ContentSettingsType type); |
| 51 // Clobbers and rebuilds all the exceptions tables in the page (both normal | 49 // Clobbers and rebuilds all the exceptions tables in the page (both normal |
| 52 // and OTR tables). | 50 // and OTR tables). |
| 53 void UpdateAllExceptionsViewsFromModel(); | 51 void UpdateAllExceptionsViewsFromModel(); |
| 54 // As above, but only OTR tables. | 52 // As above, but only OTR tables. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 std::string GetSettingDefaultFromModel(ContentSettingsType type); | 98 std::string GetSettingDefaultFromModel(ContentSettingsType type); |
| 101 | 99 |
| 102 // Returns true if the default setting for the given content settings type | 100 // Returns true if the default setting for the given content settings type |
| 103 // |type| is managed. | 101 // |type| is managed. |
| 104 bool GetDefaultSettingManagedFromModel(ContentSettingsType type); | 102 bool GetDefaultSettingManagedFromModel(ContentSettingsType type); |
| 105 | 103 |
| 106 // Member variables --------------------------------------------------------- | 104 // Member variables --------------------------------------------------------- |
| 107 | 105 |
| 108 NotificationRegistrar notification_registrar_; | 106 NotificationRegistrar notification_registrar_; |
| 109 PrefChangeRegistrar pref_change_registrar_; | 107 PrefChangeRegistrar pref_change_registrar_; |
| 110 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_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ | 112 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CONTENT_SETTINGS_HANDLER_H_ |
| OLD | NEW |