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

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: Inadvertant include. Created 8 years, 7 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); 112 void DeleteDataModifiedSince(const base::Time& cutoff,
113 bool include_protected_origins);
113 void PurgeMemory(); 114 void PurgeMemory();
114 115
115 // Used by content settings to alter the behavior around 116 // Used by content settings to alter the behavior around
116 // what data to keep and what data to discard at shutdown. 117 // what data to keep and what data to discard at shutdown.
117 // The policy is not so straight forward to describe, see 118 // The policy is not so straight forward to describe, see
118 // the implementation for details. 119 // the implementation for details.
119 void SetClearLocalState(bool clear_local_state) { 120 void SetClearLocalState(bool clear_local_state) {
120 clear_local_state_ = clear_local_state; 121 clear_local_state_ = clear_local_state;
121 } 122 }
122 void SaveSessionState() { 123 void SaveSessionState() {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 193
193 bool is_shutdown_; 194 bool is_shutdown_;
194 bool clear_local_state_; 195 bool clear_local_state_;
195 bool save_session_state_; 196 bool save_session_state_;
196 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 197 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
197 }; 198 };
198 199
199 } // namespace dom_storage 200 } // namespace dom_storage
200 201
201 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_ 202 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698