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

Unified Diff: chrome/browser/browsing_data_remover.h

Issue 7717023: Rename REMOVE_COOKIES to REMOVE_SITE_DATA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased onto ToT. Created 9 years, 3 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/automation/testing_automation_provider.cc ('k') | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_remover.h
diff --git a/chrome/browser/browsing_data_remover.h b/chrome/browser/browsing_data_remover.h
index 115c0d5d6ab71ca2f709b6ee4ab4433dee545cb0..2e29825cd2471229739b3d37bd03407070fe4177 100644
--- a/chrome/browser/browsing_data_remover.h
+++ b/chrome/browser/browsing_data_remover.h
@@ -12,6 +12,7 @@
#include "base/observer_list.h"
#include "base/synchronization/waitable_event_watcher.h"
#include "base/time.h"
+#include "chrome/browser/prefs/pref_member.h"
#include "content/browser/appcache/chrome_appcache_service.h"
#include "content/browser/cancelable_request.h"
#include "content/common/notification_observer.h"
@@ -56,14 +57,25 @@ class BrowsingDataRemover : public NotificationObserver,
// Mask used for Remove.
enum RemoveDataMask {
- // In addition to visits, this removes keywords and the last session.
- REMOVE_HISTORY = 1 << 0,
- REMOVE_DOWNLOADS = 1 << 1,
+ REMOVE_APPCACHE = 1 << 0,
+ REMOVE_CACHE = 1 << 1,
REMOVE_COOKIES = 1 << 2,
- REMOVE_PASSWORDS = 1 << 3,
- REMOVE_FORM_DATA = 1 << 4,
- REMOVE_CACHE = 1 << 5,
- REMOVE_LSO_DATA = 1 << 6,
+ REMOVE_DOWNLOADS = 1 << 3,
+ REMOVE_FILE_SYSTEMS = 1 << 4,
+ REMOVE_FORM_DATA = 1 << 5,
+ // In addition to visits, REMOVE_HISTORY removes keywords and last session.
+ REMOVE_HISTORY = 1 << 6,
+ REMOVE_INDEXEDDB = 1 << 7,
+ REMOVE_LOCAL_STORAGE = 1 << 8,
+ REMOVE_LSO_DATA = 1 << 9,
+ REMOVE_PASSWORDS = 1 << 10,
+ REMOVE_WEBSQL = 1 << 11,
+
+ // "Site data" includes cookies, appcache, file systems, indexedDBs, local
+ // storage, webSQL, and LSO data.
+ REMOVE_SITE_DATA = REMOVE_APPCACHE | REMOVE_COOKIES | REMOVE_FILE_SYSTEMS |
+ REMOVE_INDEXEDDB | REMOVE_LOCAL_STORAGE |
+ REMOVE_LSO_DATA | REMOVE_WEBSQL
};
// Observer is notified when the removal is done. Done means keywords have
@@ -242,6 +254,9 @@ class BrowsingDataRemover : public NotificationObserver,
// Used if we need to clear history.
CancelableRequestConsumer request_consumer_;
+ // Keeps track of whether clearing LSO data is supported.
+ BooleanPrefMember clear_plugin_lso_data_enabled_;
+
DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover);
};
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698