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

Unified Diff: content/browser/cache_storage/cache_storage_operation.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_operation.h
diff --git a/content/browser/cache_storage/cache_storage_operation.h b/content/browser/cache_storage/cache_storage_operation.h
index 124dc5a319dff97d9f0e925ec13ad350d3561b2d..741f5e862659be7387c69cf44b7101ac7bf437f4 100644
--- a/content/browser/cache_storage/cache_storage_operation.h
+++ b/content/browser/cache_storage/cache_storage_operation.h
@@ -21,7 +21,7 @@ namespace content {
class CONTENT_EXPORT CacheStorageOperation {
public:
CacheStorageOperation(
- const base::Closure& closure,
+ base::OnceClosure closure,
CacheStorageSchedulerClient client_type,
scoped_refptr<base::SingleThreadTaskRunner> task_runner);
@@ -39,7 +39,7 @@ class CONTENT_EXPORT CacheStorageOperation {
void NotifyOperationSlow();
// The operation's closure to run.
- base::Closure closure_;
+ base::OnceClosure closure_;
// Ticks at time of object creation.
base::TimeTicks creation_ticks_;

Powered by Google App Engine
This is Rietveld 408576698