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

Unified Diff: content/common/indexed_db/indexed_db_messages.h

Issue 10204003: Use WebIDBKeyPath type in WebKit API, implement IndexedDBKeyPath type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 f24e79a15b81e46d91c5e53253377868332966e3..e93c9ef43ac4290f7404010e1f04b4bcea099f6e 100644
--- a/content/common/indexed_db/indexed_db_messages.h
+++ b/content/common/indexed_db/indexed_db_messages.h
@@ -7,6 +7,7 @@
#include <vector>
#include "content/common/indexed_db/indexed_db_key.h"
+#include "content/common/indexed_db/indexed_db_key_path.h"
#include "content/common/indexed_db/indexed_db_key_range.h"
#include "content/common/indexed_db/indexed_db_param_traits.h"
#include "content/public/common/serialized_script_value.h"
@@ -57,7 +58,7 @@ IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateObjectStore_Params)
// The name of the object store.
IPC_STRUCT_MEMBER(string16, name)
// The keyPath of the object store.
- IPC_STRUCT_MEMBER(NullableString16, key_path)
+ IPC_STRUCT_MEMBER(IndexedDBKeyPath, key_path)
// Whether the object store created should have a key generator.
IPC_STRUCT_MEMBER(bool, auto_increment)
// The transaction this is associated with.
@@ -128,7 +129,7 @@ IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreCreateIndex_Params)
// The name of the index.
IPC_STRUCT_MEMBER(string16, name)
// The keyPath of the index.
- IPC_STRUCT_MEMBER(NullableString16, key_path)
+ IPC_STRUCT_MEMBER(IndexedDBKeyPath, key_path)
// Whether the index created has unique keys.
IPC_STRUCT_MEMBER(bool, unique)
// Whether the index created produces keys for each array entry.
@@ -397,7 +398,7 @@ IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexStoreName,
// WebIDBIndex::keyPath() message.
IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexKeyPath,
int32, /* idb_index_id */
- NullableString16 /* key_path */)
+ IndexedDBKeyPath /* key_path */)
// WebIDBIndex::unique() message.
IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexUnique,
@@ -472,7 +473,7 @@ IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreName,
// WebIDBObjectStore::keyPath() message.
IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreKeyPath,
int32, /* idb_object_store_id */
- NullableString16 /* keyPath */)
+ IndexedDBKeyPath /* keyPath */)
// WebIDBObjectStore::indexNames() message.
IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreIndexNames,

Powered by Google App Engine
This is Rietveld 408576698