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

Side by Side Diff: content/public/browser/storage_partition.h

Issue 2757923002: Move StoragePartitionHttpCacheDataRemover to content/ (Closed)
Patch Set: Rebase. Created 3 years, 8 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
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/public/test/cache_test_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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_
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/public/test/cache_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698