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

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

Issue 2858032: Display content settings applying to the current otr session only. (Closed)
Patch Set: updates Created 10 years, 6 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/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 5bd7ad07a16c46a079a1d4d0b9c0bb5aefc938f1..98dcbf9559feb4862ad7e93df59f80a6df8dea7a 100644
--- a/chrome/browser/gtk/options/content_exception_editor.h
+++ b/chrome/browser/gtk/options/content_exception_editor.h
@@ -26,6 +26,7 @@ class ContentExceptionEditor {
virtual void AcceptExceptionEdit(
const HostContentSettingsMap::Pattern& pattern,
ContentSetting setting,
+ bool is_off_the_record,
int index,
bool is_new) = 0;
@@ -36,15 +37,18 @@ class ContentExceptionEditor {
ContentExceptionEditor(GtkWindow* parent,
Delegate* delegate,
ContentExceptionsTableModel* model,
+ bool allow_off_the_record,
int index,
const HostContentSettingsMap::Pattern& pattern,
- ContentSetting setting);
+ ContentSetting setting,
+ bool is_off_the_record);
private:
// Returns true if we're adding a new item.
bool is_new() const { return index_ == -1; }
- bool IsPatternValid(const HostContentSettingsMap::Pattern& pattern) const;
+ bool IsPatternValid(const HostContentSettingsMap::Pattern& pattern,
+ bool is_off_the_record) const;
void UpdateImage(GtkWidget* image, bool is_valid);
@@ -69,6 +73,7 @@ class ContentExceptionEditor {
GtkWidget* entry_;
GtkWidget* pattern_image_;
GtkWidget* action_combo_;
+ GtkWidget* otr_checkbox_;
DISALLOW_COPY_AND_ASSIGN(ContentExceptionEditor);
};
« no previous file with comments | « chrome/browser/content_exceptions_table_model.cc ('k') | chrome/browser/gtk/options/content_exception_editor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698