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

Unified Diff: content/public/browser/storage_partition.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: Changing bool param to pass by reference. 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/public/browser/storage_partition.h
diff --git a/content/public/browser/storage_partition.h b/content/public/browser/storage_partition.h
index 6743a4249ea828e1573ffd745f243cb69bff11db..b85920085165664eeb986bc61b12ce99b30de83f 100644
--- a/content/public/browser/storage_partition.h
+++ b/content/public/browser/storage_partition.h
@@ -54,6 +54,13 @@ class StoragePartition {
virtual DOMStorageContext* GetDOMStorageContext() = 0;
virtual IndexedDBContext* GetIndexedDBContext() = 0;
+ // 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.
+ virtual bool IsInMemoryOnly() = 0;
+
// Returns the relative path from the profile's base directory, to the
// directory that holds all the state for storage contexts in |partition_id|.
//

Powered by Google App Engine
This is Rietveld 408576698