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

Side by Side Diff: webkit/dom_storage/dom_storage_context.h

Issue 9817011: DomStorage data deletion and memory purging. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_ 5 #ifndef WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_
6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_ 6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual ~EventObserver() {} 87 virtual ~EventObserver() {}
88 }; 88 };
89 89
90 DomStorageContext(const FilePath& directory, // empty for incognito profiles 90 DomStorageContext(const FilePath& directory, // empty for incognito profiles
91 quota::SpecialStoragePolicy* special_storage_policy, 91 quota::SpecialStoragePolicy* special_storage_policy,
92 DomStorageTaskRunner* task_runner); 92 DomStorageTaskRunner* task_runner);
93 const FilePath& directory() const { return directory_; } 93 const FilePath& directory() const { return directory_; }
94 DomStorageTaskRunner* task_runner() const { return task_runner_; } 94 DomStorageTaskRunner* task_runner() const { return task_runner_; }
95 DomStorageNamespace* GetStorageNamespace(int64 namespace_id); 95 DomStorageNamespace* GetStorageNamespace(int64 namespace_id);
96 96
97 void GetUsageInfo(std::vector<UsageInfo>* info); 97 void GetUsageInfo(std::vector<UsageInfo>* infos, bool get_file_info_too);
jsbell 2012/03/21 20:26:29 Naming: suggest "include_file_info"
michaeln 2012/03/21 20:46:10 Done.
98 void DeleteOrigin(const GURL& origin); 98 void DeleteOrigin(const GURL& origin);
99 void DeleteDataModifiedSince(const base::Time& cutoff); 99 void DeleteDataModifiedSince(const base::Time& cutoff);
100 void PurgeMemory(); 100 void PurgeMemory();
101 101
102 // Used by content settings to alter the behavior around 102 // Used by content settings to alter the behavior around
103 // what data to keep and what data to discard at shutdown. 103 // what data to keep and what data to discard at shutdown.
104 // The policy is not so straight forward to describe, see 104 // The policy is not so straight forward to describe, see
105 // the implementation for details. 105 // the implementation for details.
106 void SetClearLocalState(bool clear_local_state) { 106 void SetClearLocalState(bool clear_local_state) {
107 clear_local_state_ = clear_local_state; 107 clear_local_state_ = clear_local_state;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 bool is_shutdown_; 171 bool is_shutdown_;
172 bool clear_local_state_; 172 bool clear_local_state_;
173 bool save_session_state_; 173 bool save_session_state_;
174 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 174 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
175 }; 175 };
176 176
177 } // namespace dom_storage 177 } // namespace dom_storage
178 178
179 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_ 179 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698