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

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

Issue 8949014: Reverting due to compile failure on multiple bots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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.h ('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
===================================================================
--- chrome/browser/extensions/extension_clear_api.h (revision 114618)
+++ chrome/browser/extensions/extension_clear_api.h (working copy)
@@ -17,27 +17,6 @@
class PluginPrefs;
-namespace extension_clear_api_constants {
-
-// Keys.
-extern const char kAppCacheKey[];
-extern const char kCacheKey[];
-extern const char kCookiesKey[];
-extern const char kDownloadsKey[];
-extern const char kFileSystemsKey[];
-extern const char kFormDataKey[];
-extern const char kHistoryKey[];
-extern const char kIndexedDBKey[];
-extern const char kPluginDataKey[];
-extern const char kLocalStorageKey[];
-extern const char kPasswordsKey[];
-extern const char kWebSQLKey[];
-
-// Errors!
-extern const char kOneAtATimeError[];
-
-} // namespace extension_clear_api_constants
-
// 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
@@ -68,22 +47,10 @@
// Called when we're ready to start removing data.
void StartRemoving();
- base::Time remove_since_;
+ BrowsingDataRemover::TimePeriod period_;
int removal_mask_;
};
-class ClearAppCacheFunction : public BrowsingDataExtensionFunction {
- public:
- ClearAppCacheFunction() {}
- virtual ~ClearAppCacheFunction() {}
-
- protected:
- // BrowsingDataTypeExtensionFunction interface method.
- virtual int GetRemovalMask() const OVERRIDE;
-
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.clear.appcache")
-};
-
class ClearBrowsingDataFunction : public BrowsingDataExtensionFunction {
public:
ClearBrowsingDataFunction() {}
@@ -132,18 +99,6 @@
DECLARE_EXTENSION_FUNCTION_NAME("experimental.clear.downloads")
};
-class ClearFileSystemsFunction : public BrowsingDataExtensionFunction {
- public:
- ClearFileSystemsFunction() {}
- virtual ~ClearFileSystemsFunction() {}
-
- protected:
- // BrowsingDataTypeExtensionFunction interface method.
- virtual int GetRemovalMask() const OVERRIDE;
-
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.clear.fileSystems")
-};
-
class ClearFormDataFunction : public BrowsingDataExtensionFunction {
public:
ClearFormDataFunction() {}
@@ -168,42 +123,6 @@
DECLARE_EXTENSION_FUNCTION_NAME("experimental.clear.history")
};
-class ClearIndexedDBFunction : public BrowsingDataExtensionFunction {
- public:
- ClearIndexedDBFunction() {}
- virtual ~ClearIndexedDBFunction() {}
-
- protected:
- // BrowsingDataTypeExtensionFunction interface method.
- virtual int GetRemovalMask() const OVERRIDE;
-
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.clear.indexedDB")
-};
-
-class ClearLocalStorageFunction : public BrowsingDataExtensionFunction {
- public:
- ClearLocalStorageFunction() {}
- virtual ~ClearLocalStorageFunction() {}
-
- protected:
- // BrowsingDataTypeExtensionFunction interface method.
- virtual int GetRemovalMask() const OVERRIDE;
-
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.clear.localStorage")
-};
-
-class ClearPluginDataFunction : public BrowsingDataExtensionFunction {
- public:
- ClearPluginDataFunction() {}
- virtual ~ClearPluginDataFunction() {}
-
- protected:
- // BrowsingDataTypeExtensionFunction interface method.
- virtual int GetRemovalMask() const OVERRIDE;
-
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.clear.pluginData")
-};
-
class ClearPasswordsFunction : public BrowsingDataExtensionFunction {
public:
ClearPasswordsFunction() {}
@@ -216,15 +135,4 @@
DECLARE_EXTENSION_FUNCTION_NAME("experimental.clear.passwords")
};
-class ClearWebSQLFunction : public BrowsingDataExtensionFunction {
- public:
- ClearWebSQLFunction() {}
- virtual ~ClearWebSQLFunction() {}
-
- protected:
- // BrowsingDataTypeExtensionFunction interface method.
- virtual int GetRemovalMask() const OVERRIDE;
-
- DECLARE_EXTENSION_FUNCTION_NAME("experimental.clear.webSQL")
-};
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_CLEAR_API_H_
« no previous file with comments | « chrome/browser/browsing_data_remover.h ('k') | chrome/browser/extensions/extension_clear_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698