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

Side by Side Diff: content/browser/in_process_webkit/webkit_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_ 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_ 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 #endif 63 #endif
64 64
65 // Tells the DOMStorageContext to purge any memory it does not need. 65 // Tells the DOMStorageContext to purge any memory it does not need.
66 void PurgeMemory(); 66 void PurgeMemory();
67 67
68 // Tell all children (where applicable) to delete any objects that were 68 // Tell all children (where applicable) to delete any objects that were
69 // last modified on or after the following time. 69 // last modified on or after the following time.
70 void DeleteDataModifiedSince(const base::Time& cutoff); 70 void DeleteDataModifiedSince(const base::Time& cutoff);
71 71
72 // Tell all children (where applicable) to delete any objects that are allowed
73 // to be stored only until the end of the session.
74 void DeleteSessionOnlyData();
75
72 // Delete the session storage namespace associated with this id. Can be 76 // Delete the session storage namespace associated with this id. Can be
73 // called from any thread. 77 // called from any thread.
74 void DeleteSessionStorageNamespace(int64 session_storage_namespace_id); 78 void DeleteSessionStorageNamespace(int64 session_storage_namespace_id);
75 79
76 private: 80 private:
77 friend class base::RefCountedThreadSafe<WebKitContext>; 81 friend class base::RefCountedThreadSafe<WebKitContext>;
78 virtual ~WebKitContext(); 82 virtual ~WebKitContext();
79 83
80 // Copies of browser context data that can be accessed on any thread. 84 // Copies of browser context data that can be accessed on any thread.
81 const FilePath data_path_; 85 const FilePath data_path_;
82 const bool is_incognito_; 86 const bool is_incognito_;
83 87
84 // True if the destructors of context objects should delete their files. 88 // True if the destructors of context objects should delete their files.
85 bool clear_local_state_on_exit_; 89 bool clear_local_state_on_exit_;
86 90
87 scoped_ptr<DOMStorageContext> dom_storage_context_; 91 scoped_ptr<DOMStorageContext> dom_storage_context_;
88 scoped_refptr<IndexedDBContext> indexed_db_context_; 92 scoped_refptr<IndexedDBContext> indexed_db_context_;
89 93
90 DISALLOW_IMPLICIT_CONSTRUCTORS(WebKitContext); 94 DISALLOW_IMPLICIT_CONSTRUCTORS(WebKitContext);
91 }; 95 };
92 96
93 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_ 97 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_WEBKIT_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/dom_storage_unittest.cc ('k') | content/browser/in_process_webkit/webkit_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698