| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CONTENT_SETTINGS_CONTENT_SETTINGS_NOTIFICATION_PROVIDER_H
_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_NOTIFICATION_PROVIDER_H
_ |
| 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_NOTIFICATION_PROVIDER_H
_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_NOTIFICATION_PROVIDER_H
_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual void GetAllContentSettingsRules( | 50 virtual void GetAllContentSettingsRules( |
| 51 ContentSettingsType content_type, | 51 ContentSettingsType content_type, |
| 52 const ResourceIdentifier& resource_identifier, | 52 const ResourceIdentifier& resource_identifier, |
| 53 Rules* content_setting_rules) const; | 53 Rules* content_setting_rules) const; |
| 54 | 54 |
| 55 virtual void ClearAllContentSettingsRules( | 55 virtual void ClearAllContentSettingsRules( |
| 56 ContentSettingsType content_type); | 56 ContentSettingsType content_type); |
| 57 | 57 |
| 58 virtual void ResetToDefaults(); | 58 virtual void ResetToDefaults(); |
| 59 | 59 |
| 60 virtual void ShutdownOnUIThread(); |
| 61 |
| 60 // NotificationObserver implementation. | 62 // NotificationObserver implementation. |
| 61 virtual void Observe(NotificationType type, | 63 virtual void Observe(NotificationType type, |
| 62 const NotificationSource& source, | 64 const NotificationSource& source, |
| 63 const NotificationDetails& details); | 65 const NotificationDetails& details); |
| 64 private: | 66 private: |
| 65 void StartObserving(); | 67 void StartObserving(); |
| 66 void StopObserving(); | 68 void StopObserving(); |
| 67 | 69 |
| 68 void OnPrefsChanged(const std::string& pref_name); | 70 void OnPrefsChanged(const std::string& pref_name); |
| 69 | 71 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 97 | 99 |
| 98 PrefChangeRegistrar prefs_registrar_; | 100 PrefChangeRegistrar prefs_registrar_; |
| 99 NotificationRegistrar notification_registrar_; | 101 NotificationRegistrar notification_registrar_; |
| 100 | 102 |
| 101 DISALLOW_COPY_AND_ASSIGN(NotificationProvider); | 103 DISALLOW_COPY_AND_ASSIGN(NotificationProvider); |
| 102 }; | 104 }; |
| 103 | 105 |
| 104 } // namespace content_settings | 106 } // namespace content_settings |
| 105 | 107 |
| 106 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_NOTIFICATION_PROVIDE
R_H_ | 108 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_NOTIFICATION_PROVIDE
R_H_ |
| OLD | NEW |