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

Unified Diff: net/http/http_cache.cc

Issue 10907241: Revert 156846 - Http Cache: Add code for simulating an infinite HTTP cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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_cache_transaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache.cc
===================================================================
--- net/http/http_cache.cc (revision 156848)
+++ net/http/http_cache.cc (working copy)
@@ -352,7 +352,7 @@
CreateBackend(NULL, net::CompletionCallback());
}
- HttpCache::Transaction* trans = new HttpCache::Transaction(this, NULL, NULL);
+ HttpCache::Transaction* trans = new HttpCache::Transaction(this, NULL);
MetadataWriter* writer = new MetadataWriter(trans);
// The writer will self destruct when done.
@@ -390,8 +390,7 @@
void HttpCache::InitializeInfiniteCache(const FilePath& path) {
if (base::FieldTrialList::FindFullName("InfiniteCache") != "Yes")
return;
- // To be enabled after everything is fully wired.
- // infinite_cache_.Init(path);
+ // TODO(rvargas): initialize the infinite cache
}
int HttpCache::CreateTransaction(scoped_ptr<HttpTransaction>* trans,
@@ -402,10 +401,7 @@
CreateBackend(NULL, net::CompletionCallback());
}
- InfiniteCacheTransaction* infinite_cache_transaction =
- infinite_cache_.CreateInfiniteCacheTransaction();
- trans->reset(new HttpCache::Transaction(this, delegate,
- infinite_cache_transaction));
+ trans->reset(new HttpCache::Transaction(this, delegate));
return OK;
}
« no previous file with comments | « net/http/http_cache.h ('k') | net/http/http_cache_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698