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

Unified Diff: net/disk_cache/disk_cache.h

Issue 12794003: Initialize the simple cache backend at runtime. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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: net/disk_cache/disk_cache.h
===================================================================
--- net/disk_cache/disk_cache.h (revision 188696)
+++ net/disk_cache/disk_cache.h (working copy)
@@ -54,6 +54,22 @@
net::NetLog* net_log, Backend** backend,
const net::CompletionCallback& callback);
+// A version of the above with additional |flags| allowing more fine-tuned
+// testing.
+int CreateCacheBackendWithFlags(net::CacheType type,
+ const base::FilePath& path,
+ int max_bytes,
+ bool force,
+ uint32 flags,
+ base::MessageLoopProxy* thread,
+ net::NetLog* net_log,
+ Backend** backend,
+ const net::CompletionCallback& callback);
+
+// Renames cache directory synchronously and fires off a background cleanup
+// task. Used by cache creator itself or by backends for self-restart on error.
+bool DelayedCacheCleanup(const base::FilePath& full_path);
+
// The root interface for a disk cache instance.
class NET_EXPORT Backend {
public:

Powered by Google App Engine
This is Rietveld 408576698