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

Unified Diff: chrome/browser/dom_ui/options/clear_browser_data_handler.h

Issue 6122008: Also delete plugin data when the cookies checkbox in the clear browsing data dialog is checked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 years, 11 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 | « chrome/app/generated_resources.grd ('k') | chrome/browser/dom_ui/options/clear_browser_data_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/options/clear_browser_data_handler.h
diff --git a/chrome/browser/dom_ui/options/clear_browser_data_handler.h b/chrome/browser/dom_ui/options/clear_browser_data_handler.h
index 7789bffb3851c6f9a8aad1da983bc201e434a00c..960fe78b91c5ab65bda0a28e1d3b986ae870064e 100644
--- a/chrome/browser/dom_ui/options/clear_browser_data_handler.h
+++ b/chrome/browser/dom_ui/options/clear_browser_data_handler.h
@@ -8,6 +8,7 @@
#include "chrome/browser/dom_ui/options/options_ui.h"
#include "chrome/browser/browsing_data_remover.h"
+#include "chrome/browser/plugin_data_remover_helper.h"
// Clear browser data handler page UI handler.
class ClearBrowserDataHandler : public OptionsPageUIHandler,
@@ -17,14 +18,25 @@ class ClearBrowserDataHandler : public OptionsPageUIHandler,
virtual ~ClearBrowserDataHandler();
// OptionsUIHandler implementation.
+ virtual void Initialize();
+
virtual void GetLocalizedValues(DictionaryValue* localized_strings);
// DOMMessageHandler implementation.
virtual void RegisterMessages();
+ // NotificationObserver implementation.
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
private:
+ // Javascript callback to start clearing data.
void HandleClearBrowserData(const ListValue* value);
+ // Updates the UI to reflect whether clearing LSO data is supported.
+ void UpdateClearPluginLSOData();
+
// Callback from BrowsingDataRemover. Closes the dialog.
virtual void OnBrowsingDataRemoverDone();
@@ -32,6 +44,10 @@ class ClearBrowserDataHandler : public OptionsPageUIHandler,
// of deleting itself when done.
BrowsingDataRemover* remover_;
+ // Used for asynchronously updating the preference stating whether clearing
+ // LSO data is supported.
+ PluginDataRemoverHelper clear_plugin_lso_data_enabled_;
+
DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler);
};
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/dom_ui/options/clear_browser_data_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698