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

Side by Side Diff: net/http/mock_http_cache.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/http/mock_http_cache.h ('k') | net/http/proxy_connect_redirect_http_stream.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/http/mock_http_cache.h" 5 #include "net/http/mock_http_cache.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "net/base/completion_callback.h" 9 #include "net/base/completion_callback.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 } 453 }
454 454
455 int MockDiskCache::DoomEntriesSince(const base::Time initial_time, 455 int MockDiskCache::DoomEntriesSince(const base::Time initial_time,
456 const net::CompletionCallback& callback) { 456 const net::CompletionCallback& callback) {
457 return net::ERR_NOT_IMPLEMENTED; 457 return net::ERR_NOT_IMPLEMENTED;
458 } 458 }
459 459
460 class MockDiskCache::NotImplementedIterator : public Iterator { 460 class MockDiskCache::NotImplementedIterator : public Iterator {
461 public: 461 public:
462 virtual int OpenNextEntry(disk_cache::Entry** next_entry, 462 virtual int OpenNextEntry(disk_cache::Entry** next_entry,
463 const net::CompletionCallback& callback) OVERRIDE { 463 const net::CompletionCallback& callback) override {
464 return net::ERR_NOT_IMPLEMENTED; 464 return net::ERR_NOT_IMPLEMENTED;
465 } 465 }
466 }; 466 };
467 467
468 scoped_ptr<disk_cache::Backend::Iterator> MockDiskCache::CreateIterator() { 468 scoped_ptr<disk_cache::Backend::Iterator> MockDiskCache::CreateIterator() {
469 return scoped_ptr<Iterator>(new NotImplementedIterator()); 469 return scoped_ptr<Iterator>(new NotImplementedIterator());
470 } 470 }
471 471
472 void MockDiskCache::GetStats( 472 void MockDiskCache::GetStats(
473 std::vector<std::pair<std::string, std::string> >* stats) { 473 std::vector<std::pair<std::string, std::string> >* stats) {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 void MockBlockingBackendFactory::FinishCreation() { 630 void MockBlockingBackendFactory::FinishCreation() {
631 block_ = false; 631 block_ = false;
632 if (!callback_.is_null()) { 632 if (!callback_.is_null()) {
633 if (!fail_) 633 if (!fail_)
634 backend_->reset(new MockDiskCache()); 634 backend_->reset(new MockDiskCache());
635 net::CompletionCallback cb = callback_; 635 net::CompletionCallback cb = callback_;
636 callback_.Reset(); 636 callback_.Reset();
637 cb.Run(Result()); // This object can be deleted here. 637 cb.Run(Result()); // This object can be deleted here.
638 } 638 }
639 } 639 }
OLDNEW
« no previous file with comments | « net/http/mock_http_cache.h ('k') | net/http/proxy_connect_redirect_http_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698