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

Unified Diff: content/browser/cache_storage/cache_storage_blob_to_disk_cache.h

Issue 2947753002: CacheStorage: Migrate to BindOnce/OnceCallback/OnceClosure (Closed)
Patch Set: Untangle Batch logic (relies on AdaptCallbackForRepeating) Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/cache_storage/cache_storage_blob_to_disk_cache.h
diff --git a/content/browser/cache_storage/cache_storage_blob_to_disk_cache.h b/content/browser/cache_storage/cache_storage_blob_to_disk_cache.h
index 0959b33b9c49d73c08535ef3145c55869e4138dd..0a18a9738468d7c661e08f0c3cbc744cf3ef7339 100644
--- a/content/browser/cache_storage/cache_storage_blob_to_disk_cache.h
+++ b/content/browser/cache_storage/cache_storage_blob_to_disk_cache.h
@@ -33,7 +33,7 @@ class CONTENT_EXPORT CacheStorageBlobToDiskCache
public net::URLRequestContextGetterObserver {
public:
using EntryAndBoolCallback =
- base::Callback<void(disk_cache::ScopedEntryPtr, bool)>;
+ base::OnceCallback<void(disk_cache::ScopedEntryPtr, bool)>;
// The buffer size used for reading from blobs and writing to disk cache.
static const int kBufferSize;
@@ -49,7 +49,7 @@ class CONTENT_EXPORT CacheStorageBlobToDiskCache
int disk_cache_body_index,
net::URLRequestContextGetter* request_context_getter,
std::unique_ptr<storage::BlobDataHandle> blob_data_handle,
- const EntryAndBoolCallback& callback);
+ EntryAndBoolCallback callback);
// net::URLRequest::Delegate overrides for reading blobs.
void OnResponseStarted(net::URLRequest* request, int net_error) override;

Powered by Google App Engine
This is Rietveld 408576698