1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef StructuredCloneTags_h__
6 #define StructuredCloneTags_h__
8 #include "js/StructuredClone.h"
13 // CHANGING THE ORDER/PLACEMENT OF EXISTING ENUM VALUES MAY BREAK INDEXEDDB.
14 // PROCEED WITH EXTREME CAUTION.
15 enum StructuredCloneTags
{
16 SCTAG_BASE
= JS_SCTAG_USER_MIN
,
18 // These tags are used only for main thread structured clone.
21 // This tag is obsolete and exists only for backwards compatibility with
22 // existing IndexedDB databases.
23 SCTAG_DOM_FILE_WITHOUT_LASTMODIFIEDDATE
,
26 SCTAG_DOM_MUTABLEFILE
,
29 // These tags are used for both main thread and workers.
31 SCTAG_DOM_MAP_MESSAGEPORT
,
35 // This tag is for WebCrypto keys
36 SCTAG_DOM_WEBCRYPTO_KEY
,
38 SCTAG_DOM_NULL_PRINCIPAL
,
39 SCTAG_DOM_SYSTEM_PRINCIPAL
,
40 SCTAG_DOM_CONTENT_PRINCIPAL
,
46 } // namespace mozilla
48 #endif // StructuredCloneTags_h__