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

Unified Diff: net/disk_cache/disk_cache.cc

Issue 2626173003: Calculate the size of all cache entries between two points in time. (Closed)
Patch Set: revert cache_storage_cache_unittest.cc Created 3 years, 11 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/disk_cache.h ('k') | net/disk_cache/disk_cache_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/disk_cache.cc
diff --git a/net/disk_cache/cache_creator.cc b/net/disk_cache/disk_cache.cc
similarity index 87%
rename from net/disk_cache/cache_creator.cc
rename to net/disk_cache/disk_cache.cc
index f0146deb928ab7c5d434838197a85ae9251d48c1..81676ebd420430ce5d405cb2c27884f7f83e9039 100644
--- a/net/disk_cache/cache_creator.cc
+++ b/net/disk_cache/disk_cache.cc
@@ -88,8 +88,7 @@ CacheCreator::CacheCreator(
net_log_(net_log) {
}
-CacheCreator::~CacheCreator() {
-}
+CacheCreator::~CacheCreator() {}
int CacheCreator::Run() {
#if defined(OS_ANDROID)
@@ -101,14 +100,14 @@ int CacheCreator::Run() {
(backend_type_ == net::CACHE_BACKEND_DEFAULT &&
kSimpleBackendIsDefault)) {
disk_cache::SimpleBackendImpl* simple_cache =
- new disk_cache::SimpleBackendImpl(
- path_, max_bytes_, type_, thread_, net_log_);
+ new disk_cache::SimpleBackendImpl(path_, max_bytes_, type_, thread_,
+ net_log_);
created_cache_.reset(simple_cache);
return simple_cache->Init(
base::Bind(&CacheCreator::OnIOComplete, base::Unretained(this)));
}
- // Avoid references to blockfile functions on Android to reduce binary size.
+// Avoid references to blockfile functions on Android to reduce binary size.
#if defined(OS_ANDROID)
return net::ERR_FAILED;
#else
@@ -176,17 +175,16 @@ int CreateCacheBackend(
return *backend ? net::OK : net::ERR_FAILED;
}
DCHECK(thread.get());
- CacheCreator* creator = new CacheCreator(path,
- force,
- max_bytes,
- type,
- backend_type,
- kNone,
- thread,
- net_log,
- backend,
- callback);
+ CacheCreator* creator =
+ new CacheCreator(path, force, max_bytes, type, backend_type, kNone,
+ thread, net_log, backend, callback);
return creator->Run();
}
+int Backend::CalculateSizeOfEntriesBetween(base::Time initial_time,
+ base::Time end_time,
+ const CompletionCallback& callback) {
+ return net::ERR_NOT_IMPLEMENTED;
+}
+
} // namespace disk_cache
« no previous file with comments | « net/disk_cache/disk_cache.h ('k') | net/disk_cache/disk_cache_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698