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

Unified Diff: content/common/indexed_db/indexed_db_messages.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/common/indexed_db/indexed_db_messages.h
diff --git a/content/common/indexed_db/indexed_db_messages.h b/content/common/indexed_db/indexed_db_messages.h
index ac3fa2bcac98515715105ef910fde834953d81ed..1107c3fdcc88fe73a2545060d95520284a26ea28 100644
--- a/content/common/indexed_db/indexed_db_messages.h
+++ b/content/common/indexed_db/indexed_db_messages.h
@@ -22,13 +22,10 @@
// Argument structures used in messages
-IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBCursor::Direction,
- blink::WebIDBCursor::DirectionLast)
-IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBDatabase::PutMode,
- blink::WebIDBDatabase::PutModeLast)
-IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBDatabase::TaskType,
- blink::WebIDBDatabase::TaskTypeLast)
-IPC_ENUM_TRAITS(blink::WebIDBDatabase::TransactionMode)
+IPC_ENUM_TRAITS_MAX_VALUE(blink::Direction, blink::DirectionLast)
+IPC_ENUM_TRAITS_MAX_VALUE(blink::PutMode, blink::PutModeLast)
+IPC_ENUM_TRAITS_MAX_VALUE(blink::TaskType, blink::TaskTypeLast)
+IPC_ENUM_TRAITS(blink::TransactionMode)
IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBDataLoss, blink::WebIDBDataLossTotal)
@@ -84,7 +81,7 @@ IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateTransaction_Params)
// The scope of the transaction.
IPC_STRUCT_MEMBER(std::vector<int64>, object_store_ids)
// The transaction mode.
- IPC_STRUCT_MEMBER(blink::WebIDBDatabase::TransactionMode, mode)
+ IPC_STRUCT_MEMBER(blink::TransactionMode, mode)
IPC_STRUCT_END()
// Used to create an object store.
@@ -149,7 +146,7 @@ IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabasePut_Params)
// The key to set it on (may not be "valid"/set in some cases).
IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
// Whether this is an add or a put.
- IPC_STRUCT_MEMBER(blink::WebIDBDatabase::PutMode, put_mode)
+ IPC_STRUCT_MEMBER(blink::PutMode, put_mode)
// The index ids and the list of keys for each index.
IPC_STRUCT_MEMBER(std::vector<IndexKeys>, index_keys)
// Sideband data for any blob or file encoded in value.
@@ -172,11 +169,11 @@ IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseOpenCursor_Params)
// The serialized key range.
IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range)
// The direction of this cursor.
- IPC_STRUCT_MEMBER(blink::WebIDBCursor::Direction, direction)
+ IPC_STRUCT_MEMBER(blink::Direction, direction)
// If this is just retrieving the key
IPC_STRUCT_MEMBER(bool, key_only)
// The priority of this cursor.
- IPC_STRUCT_MEMBER(blink::WebIDBDatabase::TaskType, task_type)
+ IPC_STRUCT_MEMBER(blink::TaskType, task_type)
IPC_STRUCT_END()
// Used to open both cursors and object cursors in IndexedDB.

Powered by Google App Engine
This is Rietveld 408576698