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

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

Issue 10413072: Teaching BrowsingDataRemover how to delete application data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: How's this direction? Created 8 years, 6 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // there is no backing on disk. 102 // there is no backing on disk.
103 const FilePath& sessionstorage_directory() { 103 const FilePath& sessionstorage_directory() {
104 return sessionstorage_directory_; 104 return sessionstorage_directory_;
105 } 105 }
106 106
107 DomStorageTaskRunner* task_runner() const { return task_runner_; } 107 DomStorageTaskRunner* task_runner() const { return task_runner_; }
108 DomStorageNamespace* GetStorageNamespace(int64 namespace_id); 108 DomStorageNamespace* GetStorageNamespace(int64 namespace_id);
109 109
110 void GetUsageInfo(std::vector<UsageInfo>* infos, bool include_file_info); 110 void GetUsageInfo(std::vector<UsageInfo>* infos, bool include_file_info);
111 void DeleteOrigin(const GURL& origin); 111 void DeleteOrigin(const GURL& origin);
112 void DeleteDataModifiedSince(const base::Time& cutoff);
113 void PurgeMemory(); 112 void PurgeMemory();
114 113
115 // Used by content settings to alter the behavior around 114 // Used by content settings to alter the behavior around
116 // what data to keep and what data to discard at shutdown. 115 // what data to keep and what data to discard at shutdown.
117 // The policy is not so straight forward to describe, see 116 // The policy is not so straight forward to describe, see
118 // the implementation for details. 117 // the implementation for details.
119 void SetClearLocalState(bool clear_local_state) { 118 void SetClearLocalState(bool clear_local_state) {
120 clear_local_state_ = clear_local_state; 119 clear_local_state_ = clear_local_state;
121 } 120 }
122 void SaveSessionState() { 121 void SaveSessionState() {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 191
193 bool is_shutdown_; 192 bool is_shutdown_;
194 bool clear_local_state_; 193 bool clear_local_state_;
195 bool save_session_state_; 194 bool save_session_state_;
196 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 195 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
197 }; 196 };
198 197
199 } // namespace dom_storage 198 } // namespace dom_storage
200 199
201 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_ 200 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698