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

Unified Diff: chrome/browser/extensions/api/browsing_data/browsing_data_api.h

Issue 10522002: `chrome.browsingData` extension API can now remove data from protected origins. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tiny docs tweak. 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
Index: chrome/browser/extensions/api/browsing_data/browsing_data_api.h
diff --git a/chrome/browser/extensions/api/browsing_data/browsing_data_api.h b/chrome/browser/extensions/api/browsing_data/browsing_data_api.h
index 1aa344980b4ccfc3bd94881dad6ad014ad1cdeac..ff003892578c686c34e525b5e7db5f18ea6dcdb3 100644
--- a/chrome/browser/extensions/api/browsing_data/browsing_data_api.h
+++ b/chrome/browser/extensions/api/browsing_data/browsing_data_api.h
@@ -34,7 +34,11 @@ extern const char kPasswordsKey[];
extern const char kWebSQLKey[];
// Option keys.
+extern const char kExtensionsKey[];
+extern const char kOriginTypesKey[];
+extern const char kProtectedWebKey[];
extern const char kSinceKey[];
+extern const char kUnprotectedWebKey[];
// Errors!
extern const char kOneAtATimeError[];
@@ -70,11 +74,16 @@ class BrowsingDataExtensionFunction : public AsyncExtensionFunction,
void CheckRemovingPluginDataSupported(
scoped_refptr<PluginPrefs> plugin_prefs);
+ // Parse the developer-provided |origin_types| object into an origin_set_mask
+ // that can be used with the BrowsingDataRemover.
+ int ParseOriginSetMask(const base::DictionaryValue& options);
+
// Called when we're ready to start removing data.
void StartRemoving();
base::Time remove_since_;
int removal_mask_;
+ int origin_set_mask_;
};
class RemoveAppCacheFunction : public BrowsingDataExtensionFunction {
« no previous file with comments | « chrome/browser/extensions/api/browsing_data/OWNERS ('k') | chrome/browser/extensions/api/browsing_data/browsing_data_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698