| Index: content/public/browser/dom_storage_context.h
|
| ===================================================================
|
| --- content/public/browser/dom_storage_context.h (revision 139818)
|
| +++ content/public/browser/dom_storage_context.h (working copy)
|
| @@ -11,6 +11,7 @@
|
| #include "base/callback.h"
|
| #include "base/string16.h"
|
| #include "content/common/content_export.h"
|
| +#include "googleurl/src/gurl.h"
|
|
|
| class FilePath;
|
|
|
| @@ -25,25 +26,29 @@
|
| // Represents the per-BrowserContext Local Storage data.
|
| class DOMStorageContext {
|
| public:
|
| + struct UsageInfo {
|
| + GURL origin;
|
| + size_t data_size;
|
| + base::Time last_modified;
|
| +
|
| + UsageInfo();
|
| + ~UsageInfo();
|
| + };
|
| +
|
| + typedef base::Callback<void(const std::vector<UsageInfo>&)>
|
| + GetUsageInfoCallback;
|
| +
|
| + virtual void GetUsageInfo(const GetUsageInfoCallback& callback) = 0;
|
| + 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:
|
|
|