| 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" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
| 13 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" | 13 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" |
| 14 #include "chrome/browser/content_settings/host_content_settings_map.h" | |
| 15 #include "chrome/browser/ui/webui/options/options_ui.h" | 14 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 16 #include "components/content_settings/core/browser/content_settings_observer.h" | 15 #include "components/content_settings/core/browser/content_settings_observer.h" |
| 16 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 17 #include "components/power/origin_power_map.h" | 17 #include "components/power/origin_power_map.h" |
| 18 | 18 |
| 19 namespace options { | 19 namespace options { |
| 20 | 20 |
| 21 class WebsiteSettingsHandler : public content_settings::Observer, | 21 class WebsiteSettingsHandler : public content_settings::Observer, |
| 22 public OptionsPageUIHandler { | 22 public OptionsPageUIHandler { |
| 23 public: | 23 public: |
| 24 WebsiteSettingsHandler(); | 24 WebsiteSettingsHandler(); |
| 25 ~WebsiteSettingsHandler() override; | 25 ~WebsiteSettingsHandler() override; |
| 26 | 26 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 scoped_ptr<power::OriginPowerMap::Subscription> subscription_; | 139 scoped_ptr<power::OriginPowerMap::Subscription> subscription_; |
| 140 | 140 |
| 141 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_; | 141 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_; |
| 142 | 142 |
| 143 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler); | 143 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler); |
| 144 }; | 144 }; |
| 145 | 145 |
| 146 } // namespace options | 146 } // namespace options |
| 147 | 147 |
| 148 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ | 148 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ |
| OLD | NEW |