OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WEBSITE_SETTINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // Get all origins that have used power, filter them by |last_filter_|, and | 74 // Get all origins that have used power, filter them by |last_filter_|, and |
75 // update the page. | 75 // update the page. |
76 void HandleUpdateBatteryUsage(const base::ListValue* args); | 76 void HandleUpdateBatteryUsage(const base::ListValue* args); |
77 | 77 |
78 // Deletes the local storage and repopulates the page. | 78 // Deletes the local storage and repopulates the page. |
79 void HandleDeleteLocalStorage(const base::ListValue* args); | 79 void HandleDeleteLocalStorage(const base::ListValue* args); |
80 | 80 |
81 // Populates the default setting drop down on the single site edit page. | 81 // Populates the default setting drop down on the single site edit page. |
82 void HandleUpdateDefaultSetting(const base::ListValue* args); | 82 void HandleUpdateDefaultSetting(const base::ListValue* args); |
83 | 83 |
84 // Sets the default setting for the lat used content setting to |args|. | 84 // Sets the default setting for the last used content setting to |args|. |
85 void HandleSetDefaultSetting(const base::ListValue* args); | 85 void HandleSetDefaultSetting(const base::ListValue* args); |
86 | 86 |
| 87 // Sets if a certain content setting enabled to |args|. |
| 88 void HandleSetGlobalToggle(const base::ListValue* args); |
| 89 |
87 // Closes all tabs and app windows which have the same origin as the selected | 90 // Closes all tabs and app windows which have the same origin as the selected |
88 // page. | 91 // page. |
89 void HandleStopOrigin(const base::ListValue* args); | 92 void HandleStopOrigin(const base::ListValue* args); |
90 | 93 |
91 // Callback method to be invoked when fetching the data is complete. | 94 // Callback method to be invoked when fetching the data is complete. |
92 void OnLocalStorageFetched(const LocalStorageList& storage); | 95 void OnLocalStorageFetched(const LocalStorageList& storage); |
93 | 96 |
94 // Get all origins with Content Settings for the last given content setting, | 97 // Get all origins with Content Settings for the last given content setting, |
95 // filter them by |last_filter_|, and update the page. | 98 // filter them by |last_filter_|, and update the page. |
96 void UpdateOrigins(); | 99 void UpdateOrigins(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 scoped_ptr<power::OriginPowerMap::Subscription> subscription_; | 141 scoped_ptr<power::OriginPowerMap::Subscription> subscription_; |
139 | 142 |
140 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_; | 143 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_; |
141 | 144 |
142 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler); | 145 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler); |
143 }; | 146 }; |
144 | 147 |
145 } // namespace options | 148 } // namespace options |
146 | 149 |
147 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ | 150 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ |
OLD | NEW |