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

Unified Diff: net/http/http_cache.cc

Issue 3814013: FBTF: Monster ctor patch after changing heuristics in clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: More add file fail Created 10 years, 2 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 | « net/http/http_cache.h ('k') | net/http/http_net_log_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « net/http/http_cache.h ('k') | net/http/http_net_log_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698