| Index: webkit/dom_storage/dom_storage_area.h
|
| diff --git a/webkit/dom_storage/dom_storage_area.h b/webkit/dom_storage/dom_storage_area.h
|
| index 1dbf31ca39771e298821dffd13db94db7c17d0ac..7a179010ee57be1736c57c4f2a4c785c3c4da0fa 100644
|
| --- a/webkit/dom_storage/dom_storage_area.h
|
| +++ b/webkit/dom_storage/dom_storage_area.h
|
| @@ -19,6 +19,7 @@ namespace dom_storage {
|
| class DomStorageDatabaseAdapter;
|
| class DomStorageMap;
|
| class DomStorageTaskRunner;
|
| +class SessionStorageDatabase;
|
|
|
| // Container for a per-origin Map of key/value pairs potentially
|
| // backed by storage on disk and lazily commits changes to disk.
|
| @@ -36,10 +37,11 @@ class DomStorageArea
|
| const FilePath& directory,
|
| DomStorageTaskRunner* task_runner);
|
|
|
| - // Session storage.
|
| + // Session storage. Backed on disk if |session_storage_backing| is not NULL.
|
| DomStorageArea(int64 namespace_id,
|
| const std::string& persistent_namespace_id,
|
| const GURL& origin,
|
| + SessionStorageDatabase* session_storage_backing,
|
| DomStorageTaskRunner* task_runner);
|
|
|
| const GURL& origin() const { return origin_; }
|
| @@ -119,6 +121,7 @@ class DomStorageArea
|
| scoped_refptr<DomStorageTaskRunner> task_runner_;
|
| scoped_refptr<DomStorageMap> map_;
|
| scoped_ptr<DomStorageDatabaseAdapter> backing_;
|
| + scoped_refptr<SessionStorageDatabase> session_storage_backing_;
|
| bool is_initial_import_done_;
|
| bool is_shutdown_;
|
| scoped_ptr<CommitBatch> commit_batch_;
|
|
|