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