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

Side by Side Diff: net/http/mock_http_cache.cc

Issue 8897026: Reland r113263 rebased after revert of r113249. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.h" 8 #include "base/message_loop.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 int MockDiskCache::DoomEntriesSince(const base::Time initial_time, 461 int MockDiskCache::DoomEntriesSince(const base::Time initial_time,
462 net::OldCompletionCallback* callback) { 462 net::OldCompletionCallback* callback) {
463 return net::ERR_NOT_IMPLEMENTED; 463 return net::ERR_NOT_IMPLEMENTED;
464 } 464 }
465 465
466 int MockDiskCache::OpenNextEntry(void** iter, disk_cache::Entry** next_entry, 466 int MockDiskCache::OpenNextEntry(void** iter, disk_cache::Entry** next_entry,
467 net::OldCompletionCallback* callback) { 467 net::OldCompletionCallback* callback) {
468 return net::ERR_NOT_IMPLEMENTED; 468 return net::ERR_NOT_IMPLEMENTED;
469 } 469 }
470 470
471 int MockDiskCache::OpenNextEntry(void** iter, disk_cache::Entry** next_entry,
472 const net::CompletionCallback& callback) {
473 return net::ERR_NOT_IMPLEMENTED;
474 }
475
471 void MockDiskCache::EndEnumeration(void** iter) { 476 void MockDiskCache::EndEnumeration(void** iter) {
472 } 477 }
473 478
474 void MockDiskCache::GetStats( 479 void MockDiskCache::GetStats(
475 std::vector<std::pair<std::string, std::string> >* stats) { 480 std::vector<std::pair<std::string, std::string> >* stats) {
476 } 481 }
477 482
478 void MockDiskCache::OnExternalCacheHit(const std::string& key) { 483 void MockDiskCache::OnExternalCacheHit(const std::string& key) {
479 } 484 }
480 485
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 void MockBlockingBackendFactory::FinishCreation() { 624 void MockBlockingBackendFactory::FinishCreation() {
620 block_ = false; 625 block_ = false;
621 if (callback_) { 626 if (callback_) {
622 if (!fail_) 627 if (!fail_)
623 *backend_ = new MockDiskCache(); 628 *backend_ = new MockDiskCache();
624 net::OldCompletionCallback* cb = callback_; 629 net::OldCompletionCallback* cb = callback_;
625 callback_ = NULL; 630 callback_ = NULL;
626 cb->Run(Result()); // This object can be deleted here. 631 cb->Run(Result()); // This object can be deleted here.
627 } 632 }
628 } 633 }
OLDNEW
« chrome/browser/chrome_benchmarking_message_filter.cc ('K') | « net/http/mock_http_cache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698