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

Side by Side Diff: net/disk_cache/backend_impl.cc

Issue 8792006: base::Bind: Convert chrome_benchmarking_message_filter.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. 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
« no previous file with comments | « net/disk_cache/backend_impl.h ('k') | net/disk_cache/disk_cache.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) 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/disk_cache/backend_impl.h" 5 #include "net/disk_cache/backend_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 return net::ERR_IO_PENDING; 1444 return net::ERR_IO_PENDING;
1445 } 1445 }
1446 1446
1447 int BackendImpl::OpenNextEntry(void** iter, Entry** next_entry, 1447 int BackendImpl::OpenNextEntry(void** iter, Entry** next_entry,
1448 OldCompletionCallback* callback) { 1448 OldCompletionCallback* callback) {
1449 DCHECK(callback); 1449 DCHECK(callback);
1450 background_queue_.OpenNextEntry(iter, next_entry, callback); 1450 background_queue_.OpenNextEntry(iter, next_entry, callback);
1451 return net::ERR_IO_PENDING; 1451 return net::ERR_IO_PENDING;
1452 } 1452 }
1453 1453
1454 int BackendImpl::OpenNextEntry(void** iter, Entry** next_entry,
1455 const net::CompletionCallback& callback) {
1456 DCHECK(!callback.is_null());
1457 background_queue_.OpenNextEntry(iter, next_entry, callback);
1458 return net::ERR_IO_PENDING;
1459 }
1460
1454 void BackendImpl::EndEnumeration(void** iter) { 1461 void BackendImpl::EndEnumeration(void** iter) {
1455 background_queue_.EndEnumeration(*iter); 1462 background_queue_.EndEnumeration(*iter);
1456 *iter = NULL; 1463 *iter = NULL;
1457 } 1464 }
1458 1465
1459 void BackendImpl::GetStats(StatsItems* stats) { 1466 void BackendImpl::GetStats(StatsItems* stats) {
1460 if (disabled_) 1467 if (disabled_)
1461 return; 1468 return;
1462 1469
1463 std::pair<std::string, std::string> item; 1470 std::pair<std::string, std::string> item;
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 if (total_memory > kMaxBuffersSize || total_memory <= 0) 2269 if (total_memory > kMaxBuffersSize || total_memory <= 0)
2263 total_memory = kMaxBuffersSize; 2270 total_memory = kMaxBuffersSize;
2264 2271
2265 done = true; 2272 done = true;
2266 } 2273 }
2267 2274
2268 return static_cast<int>(total_memory); 2275 return static_cast<int>(total_memory);
2269 } 2276 }
2270 2277
2271 } // namespace disk_cache 2278 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/backend_impl.h ('k') | net/disk_cache/disk_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698