summaryrefslogtreecommitdiffstats
path: root/chrome/common/indexed_db_messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/indexed_db_messages.h')
-rw-r--r--chrome/common/indexed_db_messages.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/chrome/common/indexed_db_messages.h b/chrome/common/indexed_db_messages.h
index 5742b1f..d3893b0 100644
--- a/chrome/common/indexed_db_messages.h
+++ b/chrome/common/indexed_db_messages.h
@@ -12,6 +12,7 @@
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_param_traits.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h"
#define IPC_MESSAGE_START IndexedDBMsgStart
@@ -104,8 +105,8 @@ struct IndexedDBHostMsg_ObjectStorePut_Params {
// The key to set it on (may not be "valid"/set in some cases).
IndexedDBKey key;
- // If it already exists, don't update (just return an error).
- bool add_only;
+ // Whether this is an add or a put.
+ WebKit::WebIDBObjectStore::PutMode put_mode;
// The transaction it's associated with.
int transaction_id;
@@ -211,6 +212,14 @@ struct ParamTraits<IndexedDBHostMsg_ObjectStoreOpenCursor_Params> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct ParamTraits<WebKit::WebIDBObjectStore::PutMode> {
+ typedef WebKit::WebIDBObjectStore::PutMode param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, void** iter, param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
+
} // namespace IPC
// Indexed DB messages sent from the browser to the renderer.