Chromium Code Reviews| Index: webkit/dom_storage/dom_storage_area.h |
| =================================================================== |
| --- webkit/dom_storage/dom_storage_area.h (revision 127981) |
| +++ webkit/dom_storage/dom_storage_area.h (working copy) |
| @@ -29,6 +29,7 @@ |
| public: |
| static const FilePath::CharType kDatabaseFileExtension[]; |
| static FilePath DatabaseFileNameFromOrigin(const GURL& origin); |
| + static GURL OriginFromDatabaseFileName(const FilePath& file_name); |
| DomStorageArea(int64 namespace_id, |
| const GURL& origin, |
| @@ -48,6 +49,17 @@ |
| DomStorageArea* ShallowCopy(int64 destination_namespace_id); |
| + bool HasUncommittedChanges() const; |
| + |
| + // Similar to Clear() but more optimized for just deleting |
| + // without raising events. |
| + void DeleteOrigin(); |
| + |
| + // Frees up memory when possible. Typcically, this method returns |
|
jsbell
2012/03/21 20:26:29
typo "Typcically"
michaeln
2012/03/21 20:46:10
Done.
|
| + // the object to its just constructed state, however if uncommitted |
| + // changes are pending, it does nothing. |
| + void PurgeMemory(); |
| + |
| // Schedules the commit of any unsaved changes and enters a |
| // shutdown state such that the value getters and setters will |
| // no longer do anything. |