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

Unified Diff: content/public/browser/storage_partition.h

Issue 12500009: Add the ability to clear the shader disk cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/storage_partition.h
diff --git a/content/public/browser/storage_partition.h b/content/public/browser/storage_partition.h
index b0348da5858a25377f0912a04b492fb2d6df5a25..c9cd3df2789017b41a2cff843b1471ccbee7edfc 100644
--- a/content/public/browser/storage_partition.h
+++ b/content/public/browser/storage_partition.h
@@ -69,6 +69,9 @@ class StoragePartition {
kLocalDomStorage = 1 << 3,
kSessionDomStorage = 1 << 4,
+ // Local shader storage.
+ kShaderStorage = 1 << 5,
+
kAllStorage = -1,
};
@@ -91,6 +94,15 @@ class StoragePartition {
// StoragePartition rather than just the data related to this origin.
virtual void AsyncClearData(uint32 storage_mask) = 0;
+ // Similar to AsyncClearDataForOrigin(), but deletes all the data out of the
+ // StoragePartion from between the given |begin| and |end| dates rather
+ // then just the data related to this origin.
+ //
+ // Note: This currently only supports the shader cache.
+ virtual void AsyncClearDataBetween(uint32 storage_mask,
+ const base::Time& begin,
+ const base::Time& end,
+ const base::Closure& callback) = 0;
protected:
virtual ~StoragePartition() {}
};
« no previous file with comments | « content/content_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698