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

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

Issue 320833002: [IndexedDB] Use consistent enums on both sides of IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 e30422f15ab35b88075d42667514c06c920d062c..b81c6ccf68fe83185772a589f601b7abcab60088 100644
--- a/content/browser/indexed_db/indexed_db_transaction.h
+++ b/content/browser/indexed_db/indexed_db_transaction.h
@@ -33,7 +33,7 @@ class CONTENT_EXPORT IndexedDBTransaction
int64 id,
scoped_refptr<IndexedDBDatabaseCallbacks> callbacks,
const std::set<int64>& object_store_ids,
- indexed_db::TransactionMode,
+ blink::TransactionMode,
IndexedDBDatabase* db,
IndexedDBBackingStore::Transaction* backing_store_transaction);
@@ -44,13 +44,11 @@ class CONTENT_EXPORT IndexedDBTransaction
// Called by the transaction coordinator when this transaction is unblocked.
void Start();
- indexed_db::TransactionMode mode() const { return mode_; }
+ blink::TransactionMode mode() const { return mode_; }
const std::set<int64>& scope() const { return object_store_ids_; }
- void ScheduleTask(Operation task) {
- ScheduleTask(IndexedDBDatabase::NORMAL_TASK, task);
- }
- void ScheduleTask(IndexedDBDatabase::TaskType, Operation task);
+ void ScheduleTask(Operation task) { ScheduleTask(blink::NormalTask, task); }
+ void ScheduleTask(blink::TaskType, Operation task);
void ScheduleAbortTask(Operation abort_task);
void RegisterOpenCursor(IndexedDBCursor* cursor);
void UnregisterOpenCursor(IndexedDBCursor* cursor);
@@ -113,7 +111,7 @@ class CONTENT_EXPORT IndexedDBTransaction
const int64 id_;
const std::set<int64> object_store_ids_;
- const indexed_db::TransactionMode mode_;
+ const blink::TransactionMode mode_;
bool used_;
State state_;

Powered by Google App Engine
This is Rietveld 408576698