summaryrefslogtreecommitdiffstats
path: root/dom/indexedDB/PBackgroundIDBSharedTypes.ipdlh
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /dom/indexedDB/PBackgroundIDBSharedTypes.ipdlh
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/indexedDB/PBackgroundIDBSharedTypes.ipdlh')
-rw-r--r--dom/indexedDB/PBackgroundIDBSharedTypes.ipdlh306
1 files changed, 306 insertions, 0 deletions
diff --git a/dom/indexedDB/PBackgroundIDBSharedTypes.ipdlh b/dom/indexedDB/PBackgroundIDBSharedTypes.ipdlh
new file mode 100644
index 000000000..49ac75428
--- /dev/null
+++ b/dom/indexedDB/PBackgroundIDBSharedTypes.ipdlh
@@ -0,0 +1,306 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+include protocol PBackgroundIDBDatabaseFile;
+include protocol PBackgroundMutableFile;
+include protocol PBlob;
+
+include DOMTypes;
+include ProtocolTypes;
+
+include "mozilla/dom/indexedDB/SerializationHelpers.h";
+include "mozilla/dom/quota/SerializationHelpers.h";
+
+using struct mozilla::null_t
+ from "ipc/IPCMessageUtils.h";
+
+using struct mozilla::void_t
+ from "ipc/IPCMessageUtils.h";
+
+using mozilla::dom::IDBCursor::Direction
+ from "mozilla/dom/IDBCursor.h";
+
+using mozilla::dom::indexedDB::StructuredCloneFile::FileType
+ from "mozilla/dom/IndexedDatabase.h";
+
+using class mozilla::dom::indexedDB::Key
+ from "mozilla/dom/indexedDB/Key.h";
+
+using class mozilla::dom::indexedDB::KeyPath
+ from "mozilla/dom/indexedDB/KeyPath.h";
+
+using mozilla::dom::quota::PersistenceType
+ from "mozilla/dom/quota/PersistenceType.h";
+
+using mozilla::SerializedStructuredCloneBuffer
+ from "ipc/IPCMessageUtils.h";
+
+namespace mozilla {
+namespace dom {
+namespace indexedDB {
+
+struct SerializedKeyRange
+{
+ Key lower;
+ Key upper;
+ bool lowerOpen;
+ bool upperOpen;
+ bool isOnly;
+};
+
+union BlobOrMutableFile
+{
+ null_t;
+ PBlob;
+ PBackgroundMutableFile;
+};
+
+struct SerializedStructuredCloneFile
+{
+ BlobOrMutableFile file;
+ FileType type;
+};
+
+struct SerializedStructuredCloneReadInfo
+{
+ SerializedStructuredCloneBuffer data;
+ SerializedStructuredCloneFile[] files;
+ bool hasPreprocessInfo;
+};
+
+struct SerializedStructuredCloneWriteInfo
+{
+ SerializedStructuredCloneBuffer data;
+ uint64_t offsetToKeyProp;
+};
+
+struct IndexUpdateInfo
+{
+ int64_t indexId;
+ Key value;
+ Key localizedValue;
+};
+
+union OptionalKeyRange
+{
+ SerializedKeyRange;
+ void_t;
+};
+
+struct DatabaseMetadata
+{
+ nsString name;
+ uint64_t version;
+ PersistenceType persistenceType;
+};
+
+struct ObjectStoreMetadata
+{
+ int64_t id;
+ nsString name;
+ KeyPath keyPath;
+ bool autoIncrement;
+};
+
+struct IndexMetadata
+{
+ int64_t id;
+ nsString name;
+ KeyPath keyPath;
+ nsCString locale;
+ bool unique;
+ bool multiEntry;
+ bool autoLocale;
+};
+
+struct DatabaseSpec
+{
+ DatabaseMetadata metadata;
+ ObjectStoreSpec[] objectStores;
+};
+
+struct ObjectStoreSpec
+{
+ ObjectStoreMetadata metadata;
+ IndexMetadata[] indexes;
+};
+
+struct ObjectStoreOpenCursorParams
+{
+ int64_t objectStoreId;
+ OptionalKeyRange optionalKeyRange;
+ Direction direction;
+};
+
+struct ObjectStoreOpenKeyCursorParams
+{
+ int64_t objectStoreId;
+ OptionalKeyRange optionalKeyRange;
+ Direction direction;
+};
+
+struct IndexOpenCursorParams
+{
+ int64_t objectStoreId;
+ int64_t indexId;
+ OptionalKeyRange optionalKeyRange;
+ Direction direction;
+};
+
+struct IndexOpenKeyCursorParams
+{
+ int64_t objectStoreId;
+ int64_t indexId;
+ OptionalKeyRange optionalKeyRange;
+ Direction direction;
+};
+
+union OpenCursorParams
+{
+ ObjectStoreOpenCursorParams;
+ ObjectStoreOpenKeyCursorParams;
+ IndexOpenCursorParams;
+ IndexOpenKeyCursorParams;
+};
+
+union DatabaseOrMutableFile
+{
+ PBackgroundIDBDatabaseFile;
+ PBackgroundMutableFile;
+};
+
+struct FileAddInfo
+{
+ DatabaseOrMutableFile file;
+ FileType type;
+};
+
+struct ObjectStoreAddPutParams
+{
+ int64_t objectStoreId;
+ SerializedStructuredCloneWriteInfo cloneInfo;
+ Key key;
+ IndexUpdateInfo[] indexUpdateInfos;
+ FileAddInfo[] fileAddInfos;
+};
+
+struct ObjectStoreAddParams
+{
+ ObjectStoreAddPutParams commonParams;
+};
+
+struct ObjectStorePutParams
+{
+ ObjectStoreAddPutParams commonParams;
+};
+
+struct ObjectStoreGetParams
+{
+ int64_t objectStoreId;
+ SerializedKeyRange keyRange;
+};
+
+struct ObjectStoreGetKeyParams
+{
+ int64_t objectStoreId;
+ SerializedKeyRange keyRange;
+};
+
+struct ObjectStoreGetAllParams
+{
+ int64_t objectStoreId;
+ OptionalKeyRange optionalKeyRange;
+ uint32_t limit;
+};
+
+struct ObjectStoreGetAllKeysParams
+{
+ int64_t objectStoreId;
+ OptionalKeyRange optionalKeyRange;
+ uint32_t limit;
+};
+
+struct ObjectStoreDeleteParams
+{
+ int64_t objectStoreId;
+ SerializedKeyRange keyRange;
+};
+
+struct ObjectStoreClearParams
+{
+ int64_t objectStoreId;
+};
+
+struct ObjectStoreCountParams
+{
+ int64_t objectStoreId;
+ OptionalKeyRange optionalKeyRange;
+};
+
+struct IndexGetParams
+{
+ int64_t objectStoreId;
+ int64_t indexId;
+ SerializedKeyRange keyRange;
+};
+
+struct IndexGetKeyParams
+{
+ int64_t objectStoreId;
+ int64_t indexId;
+ SerializedKeyRange keyRange;
+};
+
+struct IndexGetAllParams
+{
+ int64_t objectStoreId;
+ int64_t indexId;
+ OptionalKeyRange optionalKeyRange;
+ uint32_t limit;
+};
+
+struct IndexGetAllKeysParams
+{
+ int64_t objectStoreId;
+ int64_t indexId;
+ OptionalKeyRange optionalKeyRange;
+ uint32_t limit;
+};
+
+struct IndexCountParams
+{
+ int64_t objectStoreId;
+ int64_t indexId;
+ OptionalKeyRange optionalKeyRange;
+};
+
+union RequestParams
+{
+ ObjectStoreAddParams;
+ ObjectStorePutParams;
+ ObjectStoreGetParams;
+ ObjectStoreGetKeyParams;
+ ObjectStoreGetAllParams;
+ ObjectStoreGetAllKeysParams;
+ ObjectStoreDeleteParams;
+ ObjectStoreClearParams;
+ ObjectStoreCountParams;
+ IndexGetParams;
+ IndexGetKeyParams;
+ IndexGetAllParams;
+ IndexGetAllKeysParams;
+ IndexCountParams;
+};
+
+struct LoggingInfo
+{
+ nsID backgroundChildLoggingId;
+ int64_t nextTransactionSerialNumber;
+ int64_t nextVersionChangeTransactionSerialNumber;
+ uint64_t nextRequestSerialNumber;
+};
+
+} // namespace indexedDB
+} // namespace dom
+} // namespace mozilla