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

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

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 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
« no previous file with comments | « net/disk_cache/blockfile/backend_impl_v3.h ('k') | net/disk_cache/blockfile/entry_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 } 660 }
661 } 661 }
662 662
663 class BackendImplV3::IteratorImpl : public Backend::Iterator { 663 class BackendImplV3::IteratorImpl : public Backend::Iterator {
664 public: 664 public:
665 explicit IteratorImpl(base::WeakPtr<InFlightBackendIO> background_queue) 665 explicit IteratorImpl(base::WeakPtr<InFlightBackendIO> background_queue)
666 : background_queue_(background_queue), data_(NULL) { 666 : background_queue_(background_queue), data_(NULL) {
667 } 667 }
668 668
669 virtual int OpenNextEntry(Entry** next_entry, 669 virtual int OpenNextEntry(Entry** next_entry,
670 const net::CompletionCallback& callback) OVERRIDE { 670 const net::CompletionCallback& callback) override {
671 if (!background_queue_) 671 if (!background_queue_)
672 return net::ERR_FAILED; 672 return net::ERR_FAILED;
673 background_queue_->OpenNextEntry(&data_, next_entry, callback); 673 background_queue_->OpenNextEntry(&data_, next_entry, callback);
674 return net::ERR_IO_PENDING; 674 return net::ERR_IO_PENDING;
675 } 675 }
676 676
677 private: 677 private:
678 const base::WeakPtr<InFlightBackendIO> background_queue_; 678 const base::WeakPtr<InFlightBackendIO> background_queue_;
679 void* data_; 679 void* data_;
680 }; 680 };
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 1504
1505 int BackendImplV3::DoomEntriesSince(base::Time initial_time, 1505 int BackendImplV3::DoomEntriesSince(base::Time initial_time,
1506 const CompletionCallback& callback) { 1506 const CompletionCallback& callback) {
1507 return net::ERR_FAILED; 1507 return net::ERR_FAILED;
1508 } 1508 }
1509 1509
1510 1510
1511 class BackendImplV3::NotImplementedIterator : public Backend::Iterator { 1511 class BackendImplV3::NotImplementedIterator : public Backend::Iterator {
1512 public: 1512 public:
1513 virtual int OpenNextEntry(disk_cache::Entry** next_entry, 1513 virtual int OpenNextEntry(disk_cache::Entry** next_entry,
1514 const net::CompletionCallback& callback) OVERRIDE { 1514 const net::CompletionCallback& callback) override {
1515 return net::ERR_NOT_IMPLEMENTED; 1515 return net::ERR_NOT_IMPLEMENTED;
1516 } 1516 }
1517 }; 1517 };
1518 1518
1519 scoped_ptr<Backend::Iterator> BackendImplV3::CreateIterator() { 1519 scoped_ptr<Backend::Iterator> BackendImplV3::CreateIterator() {
1520 return scoped_ptr<Iterator>(new NotImplementedIterator()); 1520 return scoped_ptr<Iterator>(new NotImplementedIterator());
1521 } 1521 }
1522 1522
1523 void BackendImplV3::GetStats(StatsItems* stats) { 1523 void BackendImplV3::GetStats(StatsItems* stats) {
1524 NOTIMPLEMENTED(); 1524 NOTIMPLEMENTED();
1525 } 1525 }
1526 1526
1527 void BackendImplV3::OnExternalCacheHit(const std::string& key) { 1527 void BackendImplV3::OnExternalCacheHit(const std::string& key) {
1528 NOTIMPLEMENTED(); 1528 NOTIMPLEMENTED();
1529 } 1529 }
1530 1530
1531 void BackendImplV3::CleanupCache() { 1531 void BackendImplV3::CleanupCache() {
1532 } 1532 }
1533 1533
1534 } // namespace disk_cache 1534 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/backend_impl_v3.h ('k') | net/disk_cache/blockfile/entry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698