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

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: 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: public/platform/WebIDBTypes.h
diff --git a/public/platform/WebIDBTypes.h b/public/platform/WebIDBTypes.h
index 7f8f7b12f1da809fbac5c4361c9479e4361a5974..6d889be95bec3dffdd9e838ed67d44c27c5502a5 100644
--- a/public/platform/WebIDBTypes.h
+++ b/public/platform/WebIDBTypes.h
@@ -50,6 +50,33 @@ enum WebIDBDataLoss {
WebIDBDataLossTotal,
};
+enum Direction {
jsbell 2014/06/09 16:27:09 Since this is only scoped to the blink:: namespace
Pritam Nikam 2014/06/11 14:07:47 Done.
+ Next = 0,
+ NextNoDuplicate = 1,
+ Prev = 2,
+ PrevNoDuplicate = 3,
+ DirectionLast = PrevNoDuplicate
+};
+
+enum TaskType {
jsbell 2014/06/09 16:27:09 enum WebIDBTaskType { WebIDBTaskTypeNormal, ... }
Pritam Nikam 2014/06/11 14:07:47 Done.
+ NormalTask = 0,
+ PreemptiveTask,
+ TaskTypeLast = PreemptiveTask
+};
+
+enum PutMode {
jsbell 2014/06/09 16:27:09 enum WebIDBPutMode { WebIDBPutModeAddOrUpdate, ...
Pritam Nikam 2014/06/11 14:07:47 Done.
+ AddOrUpdate,
+ AddOnly,
+ CursorUpdate,
+ PutModeLast = CursorUpdate
+};
+
+enum TransactionMode {
jsbell 2014/06/09 16:27:09 enum WebIDBTransactionMode { WebIDBTransactionMode
Pritam Nikam 2014/06/11 14:07:47 Done.
+ TransactionReadOnly = 0,
+ TransactionReadWrite,
+ TransactionVersionChange,
+};
+
} // namespace blink
#endif // WebIDBTypes_h
« Source/modules/indexeddb/InspectorIndexedDBAgent.cpp ('K') | « public/platform/WebIDBDatabase.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698