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