|
[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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278953
Total comments: 24
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+148 lines, -170 lines) |
Patch |
|
M |
content/browser/indexed_db/indexed_db.h
|
View
|
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_backing_store.h
|
View
|
1
2
3
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_backing_store.cc
|
View
|
1
2
3
|
10 chunks |
+18 lines, -16 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_cursor.h
|
View
|
1
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_cursor.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_database.h
|
View
|
1
2
|
5 chunks |
+5 lines, -15 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_database.cc
|
View
|
1
2
3
|
27 chunks |
+32 lines, -32 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_database_unittest.cc
|
View
|
1
2
3
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_dispatcher_host.cc
|
View
|
1
2
3
|
2 chunks |
+10 lines, -11 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_fake_backing_store.h
|
View
|
1
2
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_fake_backing_store.cc
|
View
|
1
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_transaction.h
|
View
|
1
|
4 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_transaction.cc
|
View
|
1
2
3
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_transaction_coordinator.cc
|
View
|
1
|
5 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/browser/indexed_db/indexed_db_transaction_unittest.cc
|
View
|
1
|
8 chunks |
+12 lines, -13 lines |
0 comments
|
Download
|
|
M |
content/child/indexed_db/indexed_db_dispatcher.h
|
View
|
1
2
|
4 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/child/indexed_db/indexed_db_dispatcher.cc
|
View
|
1
2
3
|
3 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/child/indexed_db/indexed_db_dispatcher_unittest.cc
|
View
|
1
2
|
5 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/child/indexed_db/webidbdatabase_impl.h
|
View
|
1
2
|
4 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/child/indexed_db/webidbdatabase_impl.cc
|
View
|
1
2
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/common/indexed_db/indexed_db_messages.h
|
View
|
1
2
|
5 chunks |
+11 lines, -13 lines |
0 comments
|
Download
|
Total messages: 19 (0 generated)
|