OLD | NEW |
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 Loading... |
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 |
OLD | NEW |