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

Unified Diff: public/platform/WebIDBTypes.h

Issue 325683002: [IndexedDB] Use consistent enums on both sides of IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporated review comments. 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
« no previous file with comments | « public/platform/WebIDBDatabase.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebIDBTypes.h
diff --git a/public/platform/WebIDBTypes.h b/public/platform/WebIDBTypes.h
index 7f8f7b12f1da809fbac5c4361c9479e4361a5974..19e37acd3029ad2245271b20c8f0518871e8c6a0 100644
--- a/public/platform/WebIDBTypes.h
+++ b/public/platform/WebIDBTypes.h
@@ -50,6 +50,33 @@ enum WebIDBDataLoss {
WebIDBDataLossTotal,
};
+enum WebIDBCursorDirection {
+ WebIDBCursorDirectionNext = 0,
+ WebIDBCursorDirectionNextNoDuplicate = 1,
+ WebIDBCursorDirectionPrev = 2,
+ WebIDBCursorDirectionPrevNoDuplicate = 3,
+ WebIDBCursorDirectionLast = WebIDBCursorDirectionPrevNoDuplicate
+};
+
+enum WebIDBTaskType {
+ WebIDBTaskTypeNormal = 0,
+ WebIDBTaskTypePreemptive,
+ WebIDBTaskTypeLast = WebIDBTaskTypePreemptive
+};
+
+enum WebIDBPutMode {
+ WebIDBPutModeAddOrUpdate,
+ WebIDBPutModeAddOnly,
+ WebIDBPutModeCursorUpdate,
+ WebIDBPutModeLast = WebIDBPutModeCursorUpdate
+};
+
+enum WebIDBTransactionMode {
jsbell 2014/06/11 16:28:07 Can you define a Last here as well? It's not curre
Pritam Nikam 2014/06/12 09:36:03 Done.
+ WebIDBTransactionModeReadOnly = 0,
+ WebIDBTransactionModeReadWrite,
+ WebIDBTransactionModeVersionChange,
+};
+
} // namespace blink
#endif // WebIDBTypes_h
« no previous file with comments | « public/platform/WebIDBDatabase.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698