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

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: Missing subclasses. Created 5 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 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::CalculateSizeOfEntriesBetween(
1512 base::Time initial_time,
1513 base::Time end_time,
1514 const CompletionCallback& callback) {
1515 return net::ERR_FAILED;
1516 }
1511 1517
1512 class BackendImplV3::NotImplementedIterator : public Backend::Iterator { 1518 class BackendImplV3::NotImplementedIterator : public Backend::Iterator {
1513 public: 1519 public:
1514 int OpenNextEntry(disk_cache::Entry** next_entry, 1520 int OpenNextEntry(disk_cache::Entry** next_entry,
1515 const net::CompletionCallback& callback) override { 1521 const net::CompletionCallback& callback) override {
1516 return net::ERR_NOT_IMPLEMENTED; 1522 return net::ERR_NOT_IMPLEMENTED;
1517 } 1523 }
1518 }; 1524 };
1519 1525
1520 scoped_ptr<Backend::Iterator> BackendImplV3::CreateIterator() { 1526 scoped_ptr<Backend::Iterator> BackendImplV3::CreateIterator() {
1521 return scoped_ptr<Iterator>(new NotImplementedIterator()); 1527 return scoped_ptr<Iterator>(new NotImplementedIterator());
1522 } 1528 }
1523 1529
1524 void BackendImplV3::GetStats(StatsItems* stats) { 1530 void BackendImplV3::GetStats(StatsItems* stats) {
1525 NOTIMPLEMENTED(); 1531 NOTIMPLEMENTED();
1526 } 1532 }
1527 1533
1528 void BackendImplV3::OnExternalCacheHit(const std::string& key) { 1534 void BackendImplV3::OnExternalCacheHit(const std::string& key) {
1529 NOTIMPLEMENTED(); 1535 NOTIMPLEMENTED();
1530 } 1536 }
1531 1537
1532 void BackendImplV3::CleanupCache() { 1538 void BackendImplV3::CleanupCache() {
1533 } 1539 }
1534 1540
1535 } // namespace disk_cache 1541 } // namespace disk_cache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698