| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // |args| is the name of the setting and the new value. | 63 // |args| is the name of the setting and the new value. |
| 64 void HandleSetOriginPermission(const base::ListValue* args); | 64 void HandleSetOriginPermission(const base::ListValue* args); |
| 65 | 65 |
| 66 // Update the page with all origins that are using local storage. | 66 // Update the page with all origins that are using local storage. |
| 67 void HandleUpdateLocalStorage(const base::ListValue* args); | 67 void HandleUpdateLocalStorage(const base::ListValue* args); |
| 68 | 68 |
| 69 // Show the single site edit view if the given URL is valid. | 69 // Show the single site edit view if the given URL is valid. |
| 70 // |args| is the URL. | 70 // |args| is the URL. |
| 71 void HandleMaybeShowEditPage(const base::ListValue* args); | 71 void HandleMaybeShowEditPage(const base::ListValue* args); |
| 72 | 72 |
| 73 // Get all origins that have used power, filter them by |last_filter_|, and |
| 74 // update the page. |
| 75 void HandleUpdateBatteryUsage(const base::ListValue* args); |
| 76 |
| 73 // Deletes the local storage and repopulates the page. | 77 // Deletes the local storage and repopulates the page. |
| 74 void HandleDeleteLocalStorage(const base::ListValue* args); | 78 void HandleDeleteLocalStorage(const base::ListValue* args); |
| 75 | 79 |
| 76 // Closes all tabs and app windows which have the same origin as the selected | 80 // Closes all tabs and app windows which have the same origin as the selected |
| 77 // page. | 81 // page. |
| 78 void HandleStopOrigin(const base::ListValue* args); | 82 void HandleStopOrigin(const base::ListValue* args); |
| 79 | 83 |
| 80 // Callback method to be invoked when fetching the data is complete. | 84 // Callback method to be invoked when fetching the data is complete. |
| 81 void OnLocalStorageFetched(const LocalStorageList& storage); | 85 void OnLocalStorageFetched(const LocalStorageList& storage); |
| 82 | 86 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; | 119 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; |
| 116 | 120 |
| 117 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_; | 121 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_; |
| 118 | 122 |
| 119 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler); | 123 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler); |
| 120 }; | 124 }; |
| 121 | 125 |
| 122 } // namespace options | 126 } // namespace options |
| 123 | 127 |
| 124 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ | 128 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ |
| OLD | NEW |