summaryrefslogtreecommitdiffstats
path: root/dom/indexedDB/SerializationHelpers.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /dom/indexedDB/SerializationHelpers.h
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/indexedDB/SerializationHelpers.h')
-rw-r--r--dom/indexedDB/SerializationHelpers.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/dom/indexedDB/SerializationHelpers.h b/dom/indexedDB/SerializationHelpers.h
index 488c1eb044..a79c6cefb4 100644
--- a/dom/indexedDB/SerializationHelpers.h
+++ b/dom/indexedDB/SerializationHelpers.h
@@ -31,10 +31,12 @@ struct ParamTraits<mozilla::dom::indexedDB::Key> {
static void Write(MessageWriter* aWriter, const paramType& aParam) {
WriteParam(aWriter, aParam.mBuffer);
+ WriteParam(aWriter, aParam.mAutoIncrementKeyOffsets);
}
static bool Read(MessageReader* aReader, paramType* aResult) {
- return ReadParam(aReader, &aResult->mBuffer);
+ return ReadParam(aReader, &aResult->mBuffer) &&
+ ReadParam(aReader, &aResult->mAutoIncrementKeyOffsets);
}
};
@@ -72,6 +74,13 @@ struct ParamTraits<mozilla::dom::IDBTransaction::Mode>
mozilla::dom::IDBTransaction::Mode::ReadOnly,
mozilla::dom::IDBTransaction::Mode::Invalid> {};
+template <>
+struct ParamTraits<mozilla::dom::IDBTransaction::Durability>
+ : public ContiguousEnumSerializer<
+ mozilla::dom::IDBTransaction::Durability,
+ mozilla::dom::IDBTransaction::Durability::Default,
+ mozilla::dom::IDBTransaction::Durability::Invalid> {};
+
} // namespace IPC
#endif // mozilla_dom_indexeddb_serializationhelpers_h__