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

Unified Diff: chrome/browser/gtk/options/content_exception_editor.h

Issue 5574001: Move ContentSettingsDetails and Pattern out of HostContentSettingsMap as separate classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/content_settings
Patch Set: updates Created 10 years 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/gtk/options/content_exception_editor.h
diff --git a/chrome/browser/gtk/options/content_exception_editor.h b/chrome/browser/gtk/options/content_exception_editor.h
index fed69c0087853c9902dfd07d1e565fae8d184086..4ed5ad352c5aaf861d389059f80e021d71024b8c 100644
--- a/chrome/browser/gtk/options/content_exception_editor.h
+++ b/chrome/browser/gtk/options/content_exception_editor.h
@@ -23,7 +23,7 @@ class ContentExceptionEditor {
public:
// Invoked when the user accepts the edit.
virtual void AcceptExceptionEdit(
- const HostContentSettingsMap::Pattern& pattern,
+ const ContentSettingsPattern& pattern,
ContentSetting setting,
bool is_off_the_record,
int index,
@@ -38,7 +38,7 @@ class ContentExceptionEditor {
ContentExceptionsTableModel* model,
bool allow_off_the_record,
int index,
- const HostContentSettingsMap::Pattern& pattern,
+ const ContentSettingsPattern& pattern,
ContentSetting setting,
bool is_off_the_record);
virtual ~ContentExceptionEditor() {}
@@ -47,7 +47,7 @@ class ContentExceptionEditor {
// Returns true if we're adding a new item.
bool is_new() const { return index_ == -1; }
- bool IsPatternValid(const HostContentSettingsMap::Pattern& pattern,
+ bool IsPatternValid(const ContentSettingsPattern& pattern,
bool is_off_the_record) const;
void UpdateImage(GtkWidget* image, bool is_valid);
@@ -65,7 +65,7 @@ class ContentExceptionEditor {
// Index of the item being edited. If -1, indicates this is a new entry.
const int index_;
- const HostContentSettingsMap::Pattern pattern_;
+ const ContentSettingsPattern pattern_;
const ContentSetting setting_;
// UI widgets.

Powered by Google App Engine
This is Rietveld 408576698