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_ |