| Index: content/browser/storage_partition_impl.h
|
| diff --git a/content/browser/storage_partition_impl.h b/content/browser/storage_partition_impl.h
|
| index d3d6dba1593d368802e53d6a84cf76acb440e7ca..f93cafd3d39def6e30bd99b3aeb28cf198378e3b 100644
|
| --- a/content/browser/storage_partition_impl.h
|
| +++ b/content/browser/storage_partition_impl.h
|
| @@ -36,6 +36,13 @@ class StoragePartitionImpl : public StoragePartition {
|
| virtual DOMStorageContextImpl* GetDOMStorageContext() OVERRIDE;
|
| virtual IndexedDBContextImpl* GetIndexedDBContext() OVERRIDE;
|
|
|
| + // Returns a boolean to indicate whether this partition should be persisted on
|
| + // disk or just be kept in memory.
|
| + //
|
| + // TODO(nasko): Remove this function from the public API once
|
| + // URLRequestContextGetter's creation is moved into StoragePartition.
|
| + bool InMemory();
|
| +
|
| private:
|
| friend class StoragePartitionImplMap;
|
|
|
| @@ -74,6 +81,10 @@ class StoragePartitionImpl : public StoragePartition {
|
| scoped_refptr<DOMStorageContextImpl> dom_storage_context_;
|
| scoped_refptr<IndexedDBContextImpl> indexed_db_context_;
|
|
|
| +
|
| + // Boolean to indicate whether this partition should be persisted or not.
|
| + bool in_memory_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl);
|
| };
|
|
|
|
|