Chromium Code Reviews| Index: chrome/browser/ui/webui/options/website_settings_handler.h |
| diff --git a/chrome/browser/ui/webui/options/website_settings_handler.h b/chrome/browser/ui/webui/options/website_settings_handler.h |
| index bce6bf24bd4b6e75d1f4dd782cf36eac569490b6..0632b4b57833218d1c0a7f2066bf165dc3dd9c55 100644 |
| --- a/chrome/browser/ui/webui/options/website_settings_handler.h |
| +++ b/chrome/browser/ui/webui/options/website_settings_handler.h |
| @@ -9,7 +9,9 @@ |
| #include "base/basictypes.h" |
| #include "base/macros.h" |
| +#include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" |
| #include "chrome/browser/content_settings/host_content_settings_map.h" |
| +#include "chrome/browser/content_settings/local_shared_objects_container.h" |
| #include "chrome/browser/ui/webui/options/options_ui.h" |
| #include "content/public/browser/notification_observer.h" |
| #include "content/public/browser/notification_registrar.h" |
| @@ -21,6 +23,9 @@ class WebsiteSettingsHandler : public OptionsPageUIHandler { |
| WebsiteSettingsHandler(); |
| virtual ~WebsiteSettingsHandler(); |
| + typedef std::list<BrowsingDataLocalStorageHelper::LocalStorageInfo> |
| + LocalStorageList; |
| + |
| // OptionsPageUIHandler implementation. |
| virtual void GetLocalizedValues( |
| base::DictionaryValue* localized_strings) OVERRIDE; |
| @@ -35,11 +40,27 @@ class WebsiteSettingsHandler : public OptionsPageUIHandler { |
| // |args| is the filter string. |
| void HandleUpdateSearchResults(const base::ListValue* args); |
| + // Update the page with all origins that are using local storage. |
| + void HandleUpdateLocalStorage(const base::ListValue* args); |
| + |
| + // Callback method to be invoked when fetching the data is complete. |
| + void OnLocalStorageFetched(const LocalStorageList& storage); |
| + |
| // Get all origins with Content Settings for the last given content setting, |
| - // filter them by |filter|, and update the page. |
| - void UpdateOrigins(const std::string& filter); |
| + // filter them by |last_filter_|, and update the page. |
| + void UpdateOrigins(); |
| + |
| + // Get all origins with local storage usage, filter them by |last_filter_|, |
| + // and |
|
Bernhard Bauer
2014/07/23 09:09:43
Un-break this line.
Daniel Nishi
2014/07/23 16:01:11
Done.
|
| + // update the page. |
| + void UpdateLocalStorage(); |
| + |
| + std::string last_setting_; |
| + std::string last_filter_; |
| + scoped_refptr<BrowsingDataLocalStorageHelper> local_storage_; |
| + LocalStorageList local_storage_list_; |
| - ContentSettingsType last_setting_; |
| + base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_; |
| DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler); |
| }; |