| 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
|
|
|