Bumping manifests a=b2g-bump
[gecko.git] / dom / base / StructuredCloneTags.h
blob6f984d5108b17043f8113f5d74c1b39843562890
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"
10 namespace mozilla {
11 namespace dom {
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.
19 SCTAG_DOM_BLOB,
21 // This tag is obsolete and exists only for backwards compatibility with
22 // existing IndexedDB databases.
23 SCTAG_DOM_FILE_WITHOUT_LASTMODIFIEDDATE,
25 SCTAG_DOM_FILELIST,
26 SCTAG_DOM_MUTABLEFILE,
27 SCTAG_DOM_FILE,
29 // These tags are used for both main thread and workers.
30 SCTAG_DOM_IMAGEDATA,
31 SCTAG_DOM_MAP_MESSAGEPORT,
33 SCTAG_DOM_FUNCTION,
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,
42 SCTAG_DOM_MAX
45 } // namespace dom
46 } // namespace mozilla
48 #endif // StructuredCloneTags_h__