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

Side by Side Diff: net/disk_cache/blockfile/backend_impl_v3.cc

Issue 1304363013: Add a size estimation mechanism to StoragePartitionHttpCacheDataRemover. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: static_cast Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/disk_cache/blockfile/backend_impl_v3.h" 5 #include "net/disk_cache/blockfile/backend_impl_v3.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 base::Time end_time, 1501 base::Time end_time,
1502 const CompletionCallback& callback) { 1502 const CompletionCallback& callback) {
1503 return net::ERR_FAILED; 1503 return net::ERR_FAILED;
1504 } 1504 }
1505 1505
1506 int BackendImplV3::DoomEntriesSince(base::Time initial_time, 1506 int BackendImplV3::DoomEntriesSince(base::Time initial_time,
1507 const CompletionCallback& callback) { 1507 const CompletionCallback& callback) {
1508 return net::ERR_FAILED; 1508 return net::ERR_FAILED;
1509 } 1509 }
1510 1510
1511 int BackendImplV3::CalculateSizeOfAllEntries(
1512 const CompletionCallback& callback) {
1513 return net::ERR_FAILED;
1514 }
1511 1515
1512 class BackendImplV3::NotImplementedIterator : public Backend::Iterator { 1516 class BackendImplV3::NotImplementedIterator : public Backend::Iterator {
1513 public: 1517 public:
1514 int OpenNextEntry(disk_cache::Entry** next_entry, 1518 int OpenNextEntry(disk_cache::Entry** next_entry,
1515 const net::CompletionCallback& callback) override { 1519 const net::CompletionCallback& callback) override {
1516 return net::ERR_NOT_IMPLEMENTED; 1520 return net::ERR_NOT_IMPLEMENTED;
1517 } 1521 }
1518 }; 1522 };
1519 1523
1520 scoped_ptr<Backend::Iterator> BackendImplV3::CreateIterator() { 1524 scoped_ptr<Backend::Iterator> BackendImplV3::CreateIterator() {
1521 return scoped_ptr<Iterator>(new NotImplementedIterator()); 1525 return scoped_ptr<Iterator>(new NotImplementedIterator());
1522 } 1526 }
1523 1527
1524 void BackendImplV3::GetStats(StatsItems* stats) { 1528 void BackendImplV3::GetStats(StatsItems* stats) {
1525 NOTIMPLEMENTED(); 1529 NOTIMPLEMENTED();
1526 } 1530 }
1527 1531
1528 void BackendImplV3::OnExternalCacheHit(const std::string& key) { 1532 void BackendImplV3::OnExternalCacheHit(const std::string& key) {
1529 NOTIMPLEMENTED(); 1533 NOTIMPLEMENTED();
1530 } 1534 }
1531 1535
1532 void BackendImplV3::CleanupCache() { 1536 void BackendImplV3::CleanupCache() {
1533 } 1537 }
1534 1538
1535 } // namespace disk_cache 1539 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/backend_impl_v3.h ('k') | net/disk_cache/blockfile/in_flight_backend_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698