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

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

Issue 5078002: Disable content-settings GTK-UI for managed content-settings-types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 10 years, 1 month 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/cookie_filter_page_gtk.h
diff --git a/chrome/browser/gtk/options/cookie_filter_page_gtk.h b/chrome/browser/gtk/options/cookie_filter_page_gtk.h
index 34a57ec311e9dd63af1a7571b9b1c910e73ba2dd..37c0ce3a252f27dd9c76363717f2280162777443 100644
--- a/chrome/browser/gtk/options/cookie_filter_page_gtk.h
+++ b/chrome/browser/gtk/options/cookie_filter_page_gtk.h
@@ -11,6 +11,7 @@
#include <string>
#include "app/gtk_signal.h"
+#include "chrome/browser/host_content_settings_map.h"
#include "chrome/browser/options_page_base.h"
#include "chrome/browser/prefs/pref_member.h"
@@ -29,6 +30,9 @@ class CookieFilterPageGtk : public OptionsPageBase {
}
private:
+ // Updates the UI state.
+ virtual void UpdateUiState();
+
// Overridden from OptionsPageBase
virtual void NotifyPrefChanged(const std::string* pref_name);
virtual void HighlightGroup(OptionsGroup highlight_group);
@@ -54,13 +58,19 @@ class CookieFilterPageGtk : public OptionsPageBase {
// The parent GtkTable widget
GtkWidget* page_;
- // Whether we're currently setting values (and thus should ignore "toggled"
- // events).
- bool initializing_;
+ // If state of the UI is not changed by a user-action we need to ignore
+ // "toggled" events.
+ bool ignore_toggle_;
// Clear locally stored site data on exit pref.
BooleanPrefMember clear_site_data_on_exit_;
+ // Block third-party-cookies.
+ BooleanPrefMember block_third_party_cookies_;
+
+ // Managed default-cookies-setting.
+ IntegerPrefMember managed_default_cookies_setting_;
+
DISALLOW_COPY_AND_ASSIGN(CookieFilterPageGtk);
};
« no previous file with comments | « chrome/browser/gtk/options/content_filter_page_gtk.cc ('k') | chrome/browser/gtk/options/cookie_filter_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698