|
[IndexedDB] Use consistent enums on both sides of IPC.
Numerous IndexedDB IPC messages sent renderer->browser are defined members that are enums from Blink (public/platform), and on receipt are static_cast to types
defined in Chromium:
blink::WebIDBCursor::Direction => indexed_db::CursorDirection
blink::WebIDBDatabase::TaskType => IndexedDBDatabase::TaskType
blink::WebIDBDatabase::PutMode => IndexedDBDatabase::PutMode
blink::WebIDBDatabase::TransactionMode => uint16 => indexed_db::TransactionMode
Nothing enforces the equality of these enums at compile time.
So the approach adopted here is to move the Blink-side enums into public/platform/WebIDBTypes.h and use it everywhere.
Patch spread across chromium content side as well as on Blink side.
Chromium side: https://codereview.chromium.org/320833002
Blink side: https://codereview.chromium.org/325683002
BUG= 381848
R=dglazkov@chromium.org, jsbell@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176435
Total comments: 18
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+135 lines, -97 lines) |
Patch |
|
M |
Source/modules/indexeddb/IDBCursor.h
|
View
|
1
|
4 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBCursor.cpp
|
View
|
1
|
5 chunks |
+14 lines, -14 lines |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBCursorWithValue.h
|
View
|
1
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBCursorWithValue.cpp
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBDatabase.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBIndex.h
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBIndex.cpp
|
View
|
1
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBObjectStore.h
|
View
|
1
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBObjectStore.cpp
|
View
|
1
|
8 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBRequest.h
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBRequest.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBTransaction.h
|
View
|
1
2
3
|
6 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBTransaction.cpp
|
View
|
1
2
3
|
5 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/IDBTransactionTest.cpp
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
public/platform/WebIDBCursor.h
|
View
|
1
2
3
4
|
2 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
|
M |
public/platform/WebIDBDatabase.h
|
View
|
1
2
3
4
|
3 chunks |
+20 lines, -19 lines |
0 comments
|
Download
|
|
M |
public/platform/WebIDBTypes.h
|
View
|
1
2
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
Total messages: 41 (0 generated)
|