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

Unified Diff: net/disk_cache/cache_creator.cc

Issue 13907009: Support optimistic Create and Write operations on the SimpleCache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Run browser tests with our simple cache Created 7 years, 8 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/disk_cache/backend_unittest.cc ('k') | net/disk_cache/entry_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/cache_creator.cc
diff --git a/net/disk_cache/cache_creator.cc b/net/disk_cache/cache_creator.cc
index fb2bd34f4ece18a85e58d054e55a5e27cfcc0be7..acdf0551322fe22502b2af1dc5d697880eb71f05 100644
--- a/net/disk_cache/cache_creator.cc
+++ b/net/disk_cache/cache_creator.cc
@@ -81,6 +81,16 @@ int CacheCreator::Run() {
// not belong to it.
const std::string experiment_name =
base::FieldTrialList::FindFullName("SimpleCacheTrial");
+
+ if (type_ == net::DISK_CACHE) {
pasko-google - do not use 2013/05/02 15:29:35 I thought you would change this in a separate CL,
gavinp 2013/05/02 15:32:40 I recommended he do this; I thought it would be ni
pasko-google - do not use 2013/05/02 15:35:55 sry, I normally do not look at patch set names, pr
+ disk_cache::SimpleBackendImpl* simple_cache =
+ new disk_cache::SimpleBackendImpl(path_, max_bytes_, type_, thread_,
+ net_log_);
+ created_cache_ = simple_cache;
+ return simple_cache->Init(
+ base::Bind(&CacheCreator::OnIOComplete, base::Unretained(this)));
+ }
+
if (experiment_name == "ExplicitYes" || experiment_name == "ExperimentYes" ||
experiment_name == "ExperimentYes2") {
// TODO(gavinp,pasko): While simple backend development proceeds, we're only
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698