Chromium Code Reviews| Index: content/public/browser/dom_storage_context.h |
| diff --git a/content/public/browser/dom_storage_context.h b/content/public/browser/dom_storage_context.h |
| index 99f8cd142e883dea54a970d99baf227d78414cda..782663308150843f9684831102d756014b1d6329 100644 |
| --- a/content/public/browser/dom_storage_context.h |
| +++ b/content/public/browser/dom_storage_context.h |
| @@ -31,6 +31,12 @@ class DOMStorageContext { |
| // Deletes the local storage data for the given origin. |
| virtual void DeleteOrigin(const GURL& origin) = 0; |
| + // If this is called, sessionStorage data will be stored on disk, and can be |
| + // restored after a browser restart (with RecreateSessionStorage). This |
| + // function must be called right after DOMStorageContextImpl is created, and |
| + // before it's used. |
| + virtual void SetSaveSessionStorageOnDisk() = 0; |
|
michaeln
2012/07/12 21:09:15
This works but its an awkward method with that mus
marja
2012/07/13 09:05:17
Yes, okay, that would work. I can do that in a sep
jam
2012/07/13 17:42:56
ContentBrowserClient is a last-resort interface, w
|
| + |
| // Creates a SessionStorageNamespace with the given |persistent_id|. Used |
| // after tabs are restored by session restore. When created, the |
| // SessionStorageNamespace with the correct |persistent_id| will be |
| @@ -38,6 +44,11 @@ class DOMStorageContext { |
| virtual scoped_refptr<SessionStorageNamespace> RecreateSessionStorage( |
| const std::string& persistent_id) = 0; |
| + // Starts deleting sessionStorages which don't have an associated |
| + // SessionStorageNamespace alive. Called when SessionStorageNamespaces have |
| + // been created after a session restore, or a session restore won't happen. |
| + virtual void StartScavengingUnusedSessionStorage() = 0; |
| + |
| protected: |
| virtual ~DOMStorageContext() {} |
| }; |