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

Unified Diff: content/public/browser/shader_disk_cache.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
Index: content/public/browser/shader_disk_cache.h
diff --git a/content/public/browser/shader_disk_cache.h b/content/public/browser/shader_disk_cache.h
new file mode 100644
index 0000000000000000000000000000000000000000..95b5a76dcf4bad8369f1af1da4897b9ddce85eea
--- /dev/null
+++ b/content/public/browser/shader_disk_cache.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_SHADER_DISK_CACHE_H_
+#define CONTENT_PUBLIC_BROWSER_SHADER_DISK_CACHE_H_
+
+#include <map>
+#include <string>
+
+#include "base/callback.h"
+#include "base/files/file_path.h"
+#include "base/time.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+// ShaderCacheFactory maintains a cache of ShaderDiskCache objects
+// so we only create one per profile directory.
+class CONTENT_EXPORT ShaderCacheFactory {
+ public:
+ static ShaderCacheFactory* GetInstance();
+
+ virtual void ClearByPath(const base::FilePath& path,
+ const base::Time& delete_begin,
+ const base::Time& delete_end,
+ const base::Closure& callback) = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_SHADER_DISK_CACHE_H_
+

Powered by Google App Engine
This is Rietveld 408576698