Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(802)

Unified Diff: content/browser/storage_partition_impl.h

Issue 11147026: Initial refactor to get profiles to propagate storage partition details. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes based on Albert's review. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698