| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 ContentSetting content_setting); | 48 ContentSetting content_setting); |
| 49 | 49 |
| 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 ShutdownOnUIThread(); |
| 59 |
| 58 // NotificationObserver implementation. | 60 // NotificationObserver implementation. |
| 59 virtual void Observe(NotificationType type, | 61 virtual void Observe(NotificationType type, |
| 60 const NotificationSource& source, | 62 const NotificationSource& source, |
| 61 const NotificationDetails& details); | 63 const NotificationDetails& details); |
| 62 private: | 64 private: |
| 63 void StartObserving(); | 65 void StartObserving(); |
| 64 void StopObserving(); | 66 void StopObserving(); |
| 65 | 67 |
| 66 void OnPrefsChanged(const std::string& pref_name); | 68 void OnPrefsChanged(const std::string& pref_name); |
| 67 | 69 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 95 | 97 |
| 96 PrefChangeRegistrar prefs_registrar_; | 98 PrefChangeRegistrar prefs_registrar_; |
| 97 NotificationRegistrar notification_registrar_; | 99 NotificationRegistrar notification_registrar_; |
| 98 | 100 |
| 99 DISALLOW_COPY_AND_ASSIGN(NotificationProvider); | 101 DISALLOW_COPY_AND_ASSIGN(NotificationProvider); |
| 100 }; | 102 }; |
| 101 | 103 |
| 102 } // namespace content_settings | 104 } // namespace content_settings |
| 103 | 105 |
| 104 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_NOTIFICATION_PROVIDE
R_H_ | 106 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_NOTIFICATION_PROVIDE
R_H_ |
| OLD | NEW |