| 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 21 matching lines...) Expand all Loading... |
| 32 base::DictionaryValue* localized_strings) OVERRIDE; | 32 base::DictionaryValue* localized_strings) OVERRIDE; |
| 33 virtual void InitializeHandler() OVERRIDE; | 33 virtual void InitializeHandler() OVERRIDE; |
| 34 virtual void RegisterMessages() OVERRIDE; | 34 virtual void RegisterMessages() OVERRIDE; |
| 35 | 35 |
| 36 // content_settings::Observer implementation. | 36 // content_settings::Observer implementation. |
| 37 virtual void OnContentSettingChanged( | 37 virtual void OnContentSettingChanged( |
| 38 const ContentSettingsPattern& primary_pattern, | 38 const ContentSettingsPattern& primary_pattern, |
| 39 const ContentSettingsPattern& secondary_pattern, | 39 const ContentSettingsPattern& secondary_pattern, |
| 40 ContentSettingsType content_type, | 40 ContentSettingsType content_type, |
| 41 std::string resource_identifier) OVERRIDE; | 41 std::string resource_identifier) OVERRIDE; |
| 42 virtual void OnContentSettingUsed( |
| 43 const ContentSettingsPattern& primary_pattern, |
| 44 const ContentSettingsPattern& secondary_pattern, |
| 45 ContentSettingsType content_type) OVERRIDE; |
| 42 | 46 |
| 43 private: | 47 private: |
| 44 // Update the page with all origins for a given content setting. | 48 // Update the page with all origins for a given content setting. |
| 45 // |args| is the string name of the content setting. | 49 // |args| is the string name of the content setting. |
| 46 void HandleUpdateOrigins(const base::ListValue* args); | 50 void HandleUpdateOrigins(const base::ListValue* args); |
| 47 | 51 |
| 48 // Update the page with all origins given a filter string. | 52 // Update the page with all origins given a filter string. |
| 49 // |args| is the filter string. | 53 // |args| is the filter string. |
| 50 void HandleUpdateSearchResults(const base::ListValue* args); | 54 void HandleUpdateSearchResults(const base::ListValue* args); |
| 51 | 55 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; | 112 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; |
| 109 | 113 |
| 110 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_; | 114 base::WeakPtrFactory<WebsiteSettingsHandler> weak_ptr_factory_; |
| 111 | 115 |
| 112 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler); | 116 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsHandler); |
| 113 }; | 117 }; |
| 114 | 118 |
| 115 } // namespace options | 119 } // namespace options |
| 116 | 120 |
| 117 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ | 121 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEBSITE_SETTINGS_HANDLER_H_ |
| OLD | NEW |