summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_cache.cc')
-rw-r--r--net/http/http_cache.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index 0436bc4..32ae60a 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -352,7 +352,7 @@ void HttpCache::WriteMetadata(const GURL& url,
CreateBackend(NULL, net::CompletionCallback());
}
- HttpCache::Transaction* trans = new HttpCache::Transaction(this, NULL);
+ HttpCache::Transaction* trans = new HttpCache::Transaction(this, NULL, NULL);
MetadataWriter* writer = new MetadataWriter(trans);
// The writer will self destruct when done.
@@ -390,7 +390,8 @@ void HttpCache::OnExternalCacheHit(const GURL& url,
void HttpCache::InitializeInfiniteCache(const FilePath& path) {
if (base::FieldTrialList::FindFullName("InfiniteCache") != "Yes")
return;
- // TODO(rvargas): initialize the infinite cache
+ // To be enabled after everything is fully wired.
+ // infinite_cache_.Init(path);
}
int HttpCache::CreateTransaction(scoped_ptr<HttpTransaction>* trans,
@@ -401,7 +402,10 @@ int HttpCache::CreateTransaction(scoped_ptr<HttpTransaction>* trans,
CreateBackend(NULL, net::CompletionCallback());
}
- trans->reset(new HttpCache::Transaction(this, delegate));
+ InfiniteCacheTransaction* infinite_cache_transaction =
+ infinite_cache_.CreateInfiniteCacheTransaction();
+ trans->reset(new HttpCache::Transaction(this, delegate,
+ infinite_cache_transaction));
return OK;
}