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

Unified Diff: content/browser/in_process_webkit/indexed_db_context_impl.h

Issue 10447117: Unwire the clear on exit preference from the storage systems. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 7 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/in_process_webkit/indexed_db_context_impl.h
diff --git a/content/browser/in_process_webkit/indexed_db_context_impl.h b/content/browser/in_process_webkit/indexed_db_context_impl.h
index e0e42760db7152f2c0e3fc88c617a2846973eb66..b00a09502a70f17173930f34114680fc543cc046 100644
--- a/content/browser/in_process_webkit/indexed_db_context_impl.h
+++ b/content/browser/in_process_webkit/indexed_db_context_impl.h
@@ -50,13 +50,9 @@ class CONTENT_EXPORT IndexedDBContextImpl
// The indexed db file extension.
static const FilePath::CharType kIndexedDBExtension[];
- void set_clear_local_state_on_exit(bool clear_local_state) {
- clear_local_state_on_exit_ = clear_local_state;
- }
-
- // Disables the exit-time deletion for all data (also session-only data).
- void SaveSessionState() {
- save_session_state_ = true;
+ // Disables the exit-time deletion of session-only data.
+ void SetForceKeepSessionState() {
+ force_keep_session_state_ = true;
}
// IndexedDBContext implementation:
@@ -89,7 +85,7 @@ class CONTENT_EXPORT IndexedDBContextImpl
private:
FRIEND_TEST_ALL_PREFIXES(IndexedDBTest, ClearLocalState);
FRIEND_TEST_ALL_PREFIXES(IndexedDBTest, ClearSessionOnlyDatabases);
- FRIEND_TEST_ALL_PREFIXES(IndexedDBTest, SaveSessionState);
+ FRIEND_TEST_ALL_PREFIXES(IndexedDBTest, SetForceKeepSessionState);
friend class IndexedDBQuotaClientTest;
typedef std::map<GURL, int64> OriginToSizeMap;
@@ -121,9 +117,8 @@ class CONTENT_EXPORT IndexedDBContextImpl
scoped_ptr<WebKit::WebIDBFactory> idb_factory_;
FilePath data_path_;
- bool clear_local_state_on_exit_;
// If true, nothing (not even session-only data) should be deleted on exit.
- bool save_session_state_;
+ bool force_keep_session_state_;
scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_;
scoped_ptr<std::set<GURL> > origin_set_;

Powered by Google App Engine
This is Rietveld 408576698