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

Unified Diff: chrome/browser/content_exceptions_table_model.h

Issue 3017011: Make content settings map updates live.
Patch Set: Created 10 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_exceptions_table_model.h
diff --git a/chrome/browser/content_exceptions_table_model.h b/chrome/browser/content_exceptions_table_model.h
index 9ade4d856830a77e5e96e1d6a68dda55d5daaafb..3f59d96172ffd5eed70eea8a5db6fb350572fcfb 100644
--- a/chrome/browser/content_exceptions_table_model.h
+++ b/chrome/browser/content_exceptions_table_model.h
@@ -10,9 +10,12 @@
#include "app/table_model.h"
#include "chrome/common/content_settings.h"
#include "chrome/common/content_settings_types.h"
+#include "chrome/common/notification_registrar.h"
+#include "chrome/common/notification_service.h"
#include "chrome/browser/host_content_settings_map.h"
-class ContentExceptionsTableModel : public TableModel {
+class ContentExceptionsTableModel : public TableModel,
+ public NotificationObserver {
public:
ContentExceptionsTableModel(HostContentSettingsMap* map,
ContentSettingsType content_type);
@@ -42,11 +45,16 @@ class ContentExceptionsTableModel : public TableModel {
virtual std::wstring GetText(int row, int column_id);
virtual void SetObserver(TableModelObserver* observer);
+ // NotificationObserver overrides:
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
private:
HostContentSettingsMap* map_;
ContentSettingsType content_type_;
HostContentSettingsMap::SettingsForOneType entries_;
TableModelObserver* observer_;
+ NotificationRegistrar registrar_;
DISALLOW_COPY_AND_ASSIGN(ContentExceptionsTableModel);
};
« no previous file with comments | « chrome/browser/cocoa/content_settings_dialog_controller.mm ('k') | chrome/browser/content_exceptions_table_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698