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

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: Tests. 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
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..65c58c720282f58439a82c1ec8d3a0b5eb407193 100644
--- a/content/browser/in_process_webkit/dom_storage_context.h
+++ b/content/browser/in_process_webkit/dom_storage_context.h
@@ -80,6 +80,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);

Powered by Google App Engine
This is Rietveld 408576698