Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: chrome/browser/content_settings/content_settings_notification_provider.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698