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

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

Issue 7619010: Session-only local storage cleared on exit. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Code review comments (tiny). Created 9 years, 4 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
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/browser/in_process_webkit/dom_storage_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/in_process_webkit/dom_storage_context.h
diff --git a/content/browser/in_process_webkit/dom_storage_context.h b/content/browser/in_process_webkit/dom_storage_context.h
index 4b5e639f05a16a89631e47de4465c5d8afe9928a..a23dc83a6bb16fa9e4c83270e02a63dfc90c60df 100644
--- a/content/browser/in_process_webkit/dom_storage_context.h
+++ b/content/browser/in_process_webkit/dom_storage_context.h
@@ -10,6 +10,7 @@
#include <set>
#include "base/file_path.h"
+#include "base/gtest_prod_util.h"
#include "base/memory/ref_counted.h"
#include "base/string16.h"
#include "base/time.h"
@@ -80,6 +81,11 @@ class DOMStorageContext {
// are not deleted by this method.
void DeleteDataModifiedSince(const base::Time& cutoff);
+ // Delete any local storage files which are allowed to be stored only until
+ // the end of the session. Protected origins, per the SpecialStoragePolicy,
+ // are not deleted by this method.
+ void DeleteSessionOnlyData();
+
// Deletes a single local storage file.
void DeleteLocalStorageFile(const FilePath& file_path);
@@ -108,6 +114,9 @@ class DOMStorageContext {
#endif
private:
+
+ FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SessionOnly);
+
// Get the local storage instance. The object is owned by this class.
DOMStorageNamespace* CreateLocalStorage();
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/browser/in_process_webkit/dom_storage_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698