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

Unified Diff: chrome/browser/extensions/extension_clear_api.h

Issue 8223004: Check whether clearing LSO data is supported in clients of the BrowsingDataRemover. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit test Created 9 years, 2 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/browsing_data_remover_unittest.cc ('k') | chrome/browser/extensions/extension_clear_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_clear_api.h
diff --git a/chrome/browser/extensions/extension_clear_api.h b/chrome/browser/extensions/extension_clear_api.h
index 46c89cb996848378e616857fc5dd86c3a442cbcd..ed074e083e60ab3c3f16b6a69e19ce315248fa83 100644
--- a/chrome/browser/extensions/extension_clear_api.h
+++ b/chrome/browser/extensions/extension_clear_api.h
@@ -20,6 +20,8 @@ namespace base {
class DictionaryValue;
}
+class PluginPrefs;
+
// This serves as a base class from which the browsing data API functions will
// inherit. Each needs to be an observer of BrowsingDataRemover events, and each
// will handle those events in the same way (by calling the passed-in callback
@@ -40,6 +42,17 @@ class BrowsingDataExtensionFunction : public AsyncExtensionFunction,
// Children should override this method to provide the proper removal mask
// based on the API call they represent.
virtual int GetRemovalMask() const = 0;
+
+ private:
+ // Updates the removal bitmask according to whether removing LSO data is
+ // supported or not.
+ void CheckRemovingLSODataSupported(scoped_refptr<PluginPrefs> plugin_prefs);
+
+ // Called when we're ready to start removing data.
+ void StartRemoving();
+
+ BrowsingDataRemover::TimePeriod period_;
+ int removal_mask_;
};
class ClearBrowsingDataFunction : public BrowsingDataExtensionFunction {
« no previous file with comments | « chrome/browser/browsing_data_remover_unittest.cc ('k') | chrome/browser/extensions/extension_clear_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698