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

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

Issue 8794003: base::Bind: Convert disk_cache_based_ssl_host_info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove an OldCompletionCallback. 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/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 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 return not_deleted; 1374 return not_deleted;
1375 } 1375 }
1376 1376
1377 int BackendImpl::OpenEntry(const std::string& key, Entry** entry, 1377 int BackendImpl::OpenEntry(const std::string& key, Entry** entry,
1378 OldCompletionCallback* callback) { 1378 OldCompletionCallback* callback) {
1379 DCHECK(callback); 1379 DCHECK(callback);
1380 background_queue_.OpenEntry(key, entry, callback); 1380 background_queue_.OpenEntry(key, entry, callback);
1381 return net::ERR_IO_PENDING; 1381 return net::ERR_IO_PENDING;
1382 } 1382 }
1383 1383
1384 int BackendImpl::OpenEntry(const std::string& key, Entry** entry,
1385 const net::CompletionCallback& callback) {
1386 DCHECK(!callback.is_null());
1387 background_queue_.OpenEntry(key, entry, callback);
1388 return net::ERR_IO_PENDING;
1389 }
1390
1384 int BackendImpl::CreateEntry(const std::string& key, Entry** entry, 1391 int BackendImpl::CreateEntry(const std::string& key, Entry** entry,
1385 OldCompletionCallback* callback) { 1392 OldCompletionCallback* callback) {
1386 DCHECK(callback); 1393 DCHECK(callback);
1387 background_queue_.CreateEntry(key, entry, callback); 1394 background_queue_.CreateEntry(key, entry, callback);
1388 return net::ERR_IO_PENDING; 1395 return net::ERR_IO_PENDING;
1389 } 1396 }
1390 1397
1398 int BackendImpl::CreateEntry(const std::string& key, Entry** entry,
1399 const net::CompletionCallback& callback) {
1400 DCHECK(!callback.is_null());
1401 background_queue_.CreateEntry(key, entry, callback);
1402 return net::ERR_IO_PENDING;
1403 }
1404
1391 int BackendImpl::DoomEntry(const std::string& key, 1405 int BackendImpl::DoomEntry(const std::string& key,
1392 OldCompletionCallback* callback) { 1406 OldCompletionCallback* callback) {
1393 DCHECK(callback); 1407 DCHECK(callback);
1394 background_queue_.DoomEntry(key, callback); 1408 background_queue_.DoomEntry(key, callback);
1395 return net::ERR_IO_PENDING; 1409 return net::ERR_IO_PENDING;
1396 } 1410 }
1397 1411
1398 int BackendImpl::DoomAllEntries(OldCompletionCallback* callback) { 1412 int BackendImpl::DoomAllEntries(OldCompletionCallback* callback) {
1399 DCHECK(callback); 1413 DCHECK(callback);
1400 background_queue_.DoomAllEntries(callback); 1414 background_queue_.DoomAllEntries(callback);
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
2234 if (total_memory > kMaxBuffersSize || total_memory <= 0) 2248 if (total_memory > kMaxBuffersSize || total_memory <= 0)
2235 total_memory = kMaxBuffersSize; 2249 total_memory = kMaxBuffersSize;
2236 2250
2237 done = true; 2251 done = true;
2238 } 2252 }
2239 2253
2240 return static_cast<int>(total_memory); 2254 return static_cast<int>(total_memory);
2241 } 2255 }
2242 2256
2243 } // namespace disk_cache 2257 } // namespace disk_cache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698