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

Unified Diff: chrome/browser/views/options/exceptions_view.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/views/options/exceptions_view.h
diff --git a/chrome/browser/views/options/exceptions_view.h b/chrome/browser/views/options/exceptions_view.h
index 241d055b4c340d8f92f57bd96daf0736eed3ec04..ceb9bcbd0501673be55cd9a07bd42f782859d7e2 100644
--- a/chrome/browser/views/options/exceptions_view.h
+++ b/chrome/browser/views/options/exceptions_view.h
@@ -38,6 +38,7 @@ class ExceptionsView : public ExceptionEditorView::Delegate,
// Shows the Exceptions window.
static void ShowExceptionsWindow(gfx::NativeWindow parent,
HostContentSettingsMap* map,
+ HostContentSettingsMap* off_the_record_map,
ContentSettingsType content_type);
virtual ~ExceptionsView();
@@ -69,11 +70,14 @@ class ExceptionsView : public ExceptionEditorView::Delegate,
virtual void AcceptExceptionEdit(
const HostContentSettingsMap::Pattern& pattern,
ContentSetting setting,
+ bool is_off_the_record,
int index,
bool is_new);
private:
- ExceptionsView(HostContentSettingsMap* map, ContentSettingsType type);
+ ExceptionsView(HostContentSettingsMap* map,
+ HostContentSettingsMap* off_the_record_map,
+ ContentSettingsType type);
void Init();
@@ -95,6 +99,9 @@ class ExceptionsView : public ExceptionEditorView::Delegate,
// The model displayed in the table.
ContentExceptionsTableModel model_;
+ // True if the user can also add off the record entries.
+ bool allow_off_the_record_;
+
views::TableView* table_;
views::NativeButton* add_button_;
« no previous file with comments | « chrome/browser/views/options/exception_editor_view.cc ('k') | chrome/browser/views/options/exceptions_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698