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

Unified Diff: content/browser/indexed_db/indexed_db_transaction.h

Issue 2941353002: Indexed DB: Use BindOnce / OnceCallback / OnceClosure where applicable (Closed)
Patch Set: 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/indexed_db/indexed_db_transaction.h
diff --git a/content/browser/indexed_db/indexed_db_transaction.h b/content/browser/indexed_db/indexed_db_transaction.h
index fdd2cdbfeb5cd0ec4fa781e483285f4061108ff9..2fc65caab6b50e8ba51a1315ac815e81d98b346e 100644
--- a/content/browser/indexed_db/indexed_db_transaction.h
+++ b/content/browser/indexed_db/indexed_db_transaction.h
@@ -34,8 +34,8 @@ class IndexedDBDatabaseCallbacks;
class CONTENT_EXPORT IndexedDBTransaction {
public:
- using Operation = base::Callback<leveldb::Status(IndexedDBTransaction*)>;
- using AbortOperation = base::Closure;
+ using Operation = base::OnceCallback<leveldb::Status(IndexedDBTransaction*)>;
+ using AbortOperation = base::OnceClosure;
enum State {
CREATED, // Created, but not yet started by coordinator.
@@ -64,7 +64,7 @@ class CONTENT_EXPORT IndexedDBTransaction {
// Tasks cannot call Commit.
void ScheduleTask(Operation task) {
- ScheduleTask(blink::kWebIDBTaskTypeNormal, task);
+ ScheduleTask(blink::kWebIDBTaskTypeNormal, std::move(task));
}
void ScheduleTask(blink::WebIDBTaskType, Operation task);
void ScheduleAbortTask(AbortOperation abort_task);
« no previous file with comments | « content/browser/indexed_db/indexed_db_quota_client.cc ('k') | content/browser/indexed_db/indexed_db_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698