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

Unified Diff: chrome/browser/content_exceptions_table_model.h

Issue 3446013: Refcount the host content settings map from the content exceptions table model. (Closed)
Patch Set: updates Created 10 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/content_exceptions_table_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f30633fc7606c33d3f396bd27a0e0e195c428e1d..8e29591e8af88cd617af48665be5166929d02507 100644
--- a/chrome/browser/content_exceptions_table_model.h
+++ b/chrome/browser/content_exceptions_table_model.h
@@ -9,6 +9,7 @@
#include <string>
#include "app/table_model.h"
+#include "base/ref_counted.h"
#include "chrome/common/content_settings.h"
#include "chrome/common/content_settings_types.h"
#include "chrome/browser/host_content_settings_map.h"
@@ -63,8 +64,8 @@ class ContentExceptionsTableModel : public TableModel {
return is_off_the_record ? off_the_record_entries_ : entries_;
}
- HostContentSettingsMap* map_;
- HostContentSettingsMap* off_the_record_map_;
+ scoped_refptr<HostContentSettingsMap> map_;
+ scoped_refptr<HostContentSettingsMap> off_the_record_map_;
ContentSettingsType content_type_;
HostContentSettingsMap::SettingsForOneType entries_;
HostContentSettingsMap::SettingsForOneType off_the_record_entries_;
« no previous file with comments | « no previous file | chrome/browser/content_exceptions_table_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698