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

Side by Side Diff: content/browser/in_process_webkit/webkit_context.h

Issue 8820009: Appcache, local storage, indexed db, databases: skip exit-time deletion when restarting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 9 years 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 dom_storage_context_.reset(dom_storage_context); 63 dom_storage_context_.reset(dom_storage_context);
64 } 64 }
65 65
66 // Tells the DOMStorageContext to purge any memory it does not need. 66 // Tells the DOMStorageContext to purge any memory it does not need.
67 void PurgeMemory(); 67 void PurgeMemory();
68 68
69 // Tell all children (where applicable) to delete any objects that were 69 // Tell all children (where applicable) to delete any objects that were
70 // last modified on or after the following time. 70 // last modified on or after the following time.
71 void DeleteDataModifiedSince(const base::Time& cutoff); 71 void DeleteDataModifiedSince(const base::Time& cutoff);
72 72
73 // Tell all children (where applicable) to delete any objects that are allowed
74 // to be stored only until the end of the session.
75 void DeleteSessionOnlyData();
76
77 // Delete the session storage namespace associated with this id. Can be 73 // Delete the session storage namespace associated with this id. Can be
78 // called from any thread. 74 // called from any thread.
79 void DeleteSessionStorageNamespace(int64 session_storage_namespace_id); 75 void DeleteSessionStorageNamespace(int64 session_storage_namespace_id);
80 76
77 // Tells all children to not do delete data when destructed.
78 void SaveSessionState();
79
81 private: 80 private:
82 friend class base::RefCountedThreadSafe<WebKitContext>; 81 friend class base::RefCountedThreadSafe<WebKitContext>;
83 virtual ~WebKitContext(); 82 virtual ~WebKitContext();
84 83
85 // 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.
86 const FilePath data_path_; 85 const FilePath data_path_;
87 const bool is_incognito_; 86 const bool is_incognito_;
88 87
89 // True if the destructors of context objects should delete their files. 88 // True if the destructors of context objects should delete their files.
90 bool clear_local_state_on_exit_; 89 bool clear_local_state_on_exit_;
91 90
92 scoped_ptr<DOMStorageContext> dom_storage_context_; 91 scoped_ptr<DOMStorageContext> dom_storage_context_;
93 scoped_refptr<IndexedDBContext> indexed_db_context_; 92 scoped_refptr<IndexedDBContext> indexed_db_context_;
94 93
95 DISALLOW_IMPLICIT_CONSTRUCTORS(WebKitContext); 94 DISALLOW_IMPLICIT_CONSTRUCTORS(WebKitContext);
96 }; 95 };
97 96
98 #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/indexed_db_context.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