Chromium Code Reviews| Index: content/public/browser/dom_storage_context.h |
| =================================================================== |
| --- content/public/browser/dom_storage_context.h (revision 140052) |
| +++ content/public/browser/dom_storage_context.h (working copy) |
| @@ -11,13 +11,10 @@ |
| #include "base/callback.h" |
| #include "base/string16.h" |
| #include "content/common/content_export.h" |
| +#include "webkit/dom_storage/dom_storage_context.h" |
| class FilePath; |
| -namespace base { |
| -class Time; |
| -} |
| - |
| namespace content { |
| class BrowserContext; |
| @@ -25,25 +22,21 @@ |
| // Represents the per-BrowserContext Local Storage data. |
| class DOMStorageContext { |
| public: |
| + typedef base::Callback< |
| + void(const std::vector<dom_storage::DomStorageContext::UsageInfo>&)> |
| + GetUsageInfoCallback; |
| + |
| + virtual void GetUsageInfo(const GetUsageInfoCallback& callback) = 0; |
|
jam
2012/06/01 21:58:37
nit: please add comments for both of these methods
|
| + virtual void DeleteOrigin(const GURL& origin) = 0; |
| + |
| + // The stuff below is DEPRECATED. |
| typedef base::Callback<void(const std::vector<FilePath>&)> |
| GetAllStorageFilesCallback; |
| - |
| - // Returns all the file paths of local storage files to the given callback. |
| virtual void GetAllStorageFiles( |
| const GetAllStorageFilesCallback& callback) = 0; |
| - |
| - // Get the file name of the local storage file for the given origin. |
| virtual FilePath GetFilePath(const string16& origin_id) const = 0; |
| - |
| - // Deletes the local storage file for the given origin. |
| virtual void DeleteForOrigin(const string16& origin_id) = 0; |
| - |
| - // Deletes a single local storage file. |
| virtual void DeleteLocalStorageFile(const FilePath& file_path) = 0; |
| - |
| - // Delete any local storage files that have been touched since the cutoff |
| - // date that's supplied. Protected origins, per the SpecialStoragePolicy, |
| - // are not deleted by this method. |
| virtual void DeleteDataModifiedSince(const base::Time& cutoff) = 0; |
| protected: |