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

Unified Diff: chrome/browser/content_settings/host_content_settings_map.h

Issue 7344008: Make the hcsm and its providers communicate via an observer interface. (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/content_settings/host_content_settings_map.h
diff --git a/chrome/browser/content_settings/host_content_settings_map.h b/chrome/browser/content_settings/host_content_settings_map.h
index 10fda1015b573594448d6eae47d11e1b4ac4d62e..e7ec1ca3f91c0c3c4cffaeef9606b2122ea655df 100644
--- a/chrome/browser/content_settings/host_content_settings_map.h
+++ b/chrome/browser/content_settings/host_content_settings_map.h
@@ -19,6 +19,7 @@
#include "base/memory/ref_counted.h"
#include "base/synchronization/lock.h"
#include "chrome/browser/content_settings/content_settings_pattern.h"
+#include "chrome/browser/content_settings/content_settings_observer.h"
#include "chrome/browser/prefs/pref_change_registrar.h"
#include "chrome/common/content_settings.h"
#include "content/browser/browser_thread.h"
@@ -38,7 +39,8 @@ class PrefService;
class Profile;
class HostContentSettingsMap
- : public NotificationObserver,
+ : public content_settings::Observer,
+ public NotificationObserver,
public base::RefCountedThreadSafe<HostContentSettingsMap> {
public:
typedef Tuple3<ContentSettingsPattern, ContentSetting, std::string>
@@ -190,6 +192,13 @@ class HostContentSettingsMap
// thread should be called anymore.
void ShutdownOnUIThread();
+ // content_settings::Observer implementation.
+ virtual void OnContentSettingChanged(
+ ContentSettingsPattern primary_pattern,
+ ContentSettingsPattern secondary_pattern,
+ ContentSettingsType content_type,
+ std::string resource_identifier);
+
// NotificationObserver implementation.
virtual void Observe(int type,
const NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698