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

Unified Diff: chrome/browser/ui/webui/options2/clear_browser_data_handler2.h

Issue 10502015: Adding "Clear hosted app data" checkbox to browsing data removal UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback. Created 8 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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/webui/options2/clear_browser_data_handler2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options2/clear_browser_data_handler2.h
diff --git a/chrome/browser/ui/webui/options2/clear_browser_data_handler2.h b/chrome/browser/ui/webui/options2/clear_browser_data_handler2.h
index 9e5481209a3a3f8d76fe23f1873a5c7b589e8d95..bd232c2da6f6064b5a4716d2fa7268987ede04b5 100644
--- a/chrome/browser/ui/webui/options2/clear_browser_data_handler2.h
+++ b/chrome/browser/ui/webui/options2/clear_browser_data_handler2.h
@@ -30,9 +30,17 @@ class ClearBrowserDataHandler : public OptionsPageUIHandler,
// Javascript callback to start clearing data.
void HandleClearBrowserData(const ListValue* value);
- // Callback from BrowsingDataRemover. Closes the dialog.
+ // Callback from BrowsingDataRemover. Calls OnAllDataRemoved once both
+ // protected and unprotected data are removed.
virtual void OnBrowsingDataRemoverDone() OVERRIDE;
+ // Closes the dialog once all requested data has been removed.
+ void OnAllDataRemoved();
+
+ // Clears the data of hosted apps, which is otherwise protected from deletion
+ // when the user clears regular browsing data.
+ void ClearHostedAppData();
+
// If non-null it means removal is in progress. BrowsingDataRemover takes care
// of deleting itself when done.
BrowsingDataRemover* remover_;
@@ -40,6 +48,10 @@ class ClearBrowserDataHandler : public OptionsPageUIHandler,
// Keeps track of whether clearing LSO data is supported.
BooleanPrefMember clear_plugin_lso_data_enabled_;
+ // Indicates that we also need to delete hosted app data after finishing the
+ // first removal operation.
+ bool remove_hosted_app_data_pending_;
+
DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler);
};
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/webui/options2/clear_browser_data_handler2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698