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 CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 6 #define CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // Note: Make sure you know what you are doing before clearing cookies | 154 // Note: Make sure you know what you are doing before clearing cookies |
155 // selectively. You don't want to break the web. | 155 // selectively. You don't want to break the web. |
156 virtual void ClearData(uint32_t remove_mask, | 156 virtual void ClearData(uint32_t remove_mask, |
157 uint32_t quota_storage_remove_mask, | 157 uint32_t quota_storage_remove_mask, |
158 const OriginMatcherFunction& origin_matcher, | 158 const OriginMatcherFunction& origin_matcher, |
159 const CookieMatcherFunction& cookie_matcher, | 159 const CookieMatcherFunction& cookie_matcher, |
160 const base::Time begin, | 160 const base::Time begin, |
161 const base::Time end, | 161 const base::Time end, |
162 const base::Closure& callback) = 0; | 162 const base::Closure& callback) = 0; |
163 | 163 |
| 164 // Clears the HTTP and media caches associated with this StoragePartition's |
| 165 // request contexts. If |begin| and |end| are not null, only entries with |
| 166 // timestamps inbetween are deleted. If |url_matcher| is not null, only |
| 167 // entries with matching URLs are deleted. |
| 168 virtual void ClearHttpAndMediaCaches( |
| 169 const base::Time begin, |
| 170 const base::Time end, |
| 171 const base::Callback<bool(const GURL&)>& url_matcher, |
| 172 const base::Closure& callback) = 0; |
| 173 |
164 // Write any unwritten data to disk. | 174 // Write any unwritten data to disk. |
165 // Note: this method does not sync the data - it only ensures that any | 175 // Note: this method does not sync the data - it only ensures that any |
166 // unwritten data has been written out to the filesystem. | 176 // unwritten data has been written out to the filesystem. |
167 virtual void Flush() = 0; | 177 virtual void Flush() = 0; |
168 | 178 |
169 // Clear the bluetooth allowed devices map. For test use only. | 179 // Clear the bluetooth allowed devices map. For test use only. |
170 virtual void ClearBluetoothAllowedDevicesMapForTesting() = 0; | 180 virtual void ClearBluetoothAllowedDevicesMapForTesting() = 0; |
171 | 181 |
172 protected: | 182 protected: |
173 virtual ~StoragePartition() {} | 183 virtual ~StoragePartition() {} |
174 }; | 184 }; |
175 | 185 |
176 } // namespace content | 186 } // namespace content |
177 | 187 |
178 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ | 188 #endif // CONTENT_PUBLIC_BROWSER_STORAGE_PARTITION_H_ |
OLD | NEW |