Index: net/disk_cache/disk_cache.h |
diff --git a/net/disk_cache/disk_cache.h b/net/disk_cache/disk_cache.h |
index 13edd92f21620a31a1b44a1f155ed1f80bc59ab6..52d4a41689a1f3855d52553dfc9c40d8a11058b4 100644 |
--- a/net/disk_cache/disk_cache.h |
+++ b/net/disk_cache/disk_cache.h |
@@ -16,6 +16,7 @@ |
#include "net/base/cache_type.h" |
#include "net/base/completion_callback.h" |
#include "net/base/net_export.h" |
+#include "net/disk_cache/disk_cache.h" |
rvargas (doing something else)
2013/03/13 19:36:01
ah?
pasko-google - do not use
2013/03/18 15:47:07
Done.
|
namespace base { |
class FilePath; |
@@ -47,6 +48,20 @@ class Backend; |
// be invoked when a backend is available or a fatal error condition is reached. |
// The pointer to receive the |backend| must remain valid until the operation |
// completes (the callback is notified). |
+NET_EXPORT 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); |
+ |
+// A slightly shorter version than the above. It is invoked from WebKit and |
rvargas (doing something else)
2013/03/13 19:36:01
what is webkit?
pasko-google - do not use
2013/03/18 15:47:07
oh, I incorrectly interpreted the linker error mes
|
+// requires a cleanup step there to eliminate. |
+// TODO(pasko): eliminate this call. |
gavinp
2013/03/13 18:36:12
I think it's best if the stuff after the : is a fu
pasko-google - do not use
2013/03/18 15:47:07
Agreed. Good general note. This time it does not r
|
NET_EXPORT int CreateCacheBackend(net::CacheType type, |
const base::FilePath& path, |
int max_bytes, bool force, |
@@ -54,6 +69,10 @@ NET_EXPORT int CreateCacheBackend(net::CacheType type, |
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); |
rvargas (doing something else)
2013/03/13 19:36:01
Why is this part of the interface?
pasko-google - do not use
2013/03/18 15:47:07
It should not necessary be a part of a generic cac
rvargas (doing something else)
2013/03/18 22:25:25
How about cache_creator.h? There's already cache_u
rvargas (doing something else)
2013/03/18 22:27:16
In case it is not clear, this comment is basically
|
+ |
// The root interface for a disk cache instance. |
class NET_EXPORT Backend { |
public: |