| Index: net/http/http_cache.cc
|
| diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
|
| index 867d0036f4ec85b2bb44fbc84d58a9bb43cd4976..a62c84ee9b4a3457e7c9840ca3778db36ce5cf3b 100644
|
| --- a/net/http/http_cache.cc
|
| +++ b/net/http/http_cache.cc
|
| @@ -36,6 +36,23 @@
|
|
|
| namespace net {
|
|
|
| +HttpCache::DefaultBackend::DefaultBackend(CacheType type,
|
| + const FilePath& path,
|
| + int max_bytes,
|
| + base::MessageLoopProxy* thread)
|
| + : type_(type),
|
| + path_(path),
|
| + max_bytes_(max_bytes),
|
| + thread_(thread) {
|
| +}
|
| +
|
| +HttpCache::DefaultBackend::~DefaultBackend() {}
|
| +
|
| +// static
|
| +HttpCache::BackendFactory* HttpCache::DefaultBackend::InMemory(int max_bytes) {
|
| + return new DefaultBackend(MEMORY_CACHE, FilePath(), max_bytes, NULL);
|
| +}
|
| +
|
| int HttpCache::DefaultBackend::CreateBackend(disk_cache::Backend** backend,
|
| CompletionCallback* callback) {
|
| DCHECK_GE(max_bytes_, 0);
|
|
|