Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / dom / base / nsStructuredCloneContainer.h
blobae7146cbd621a5f6d5fb2a3807da38eeb38d4df1
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsStructuredCloneContainer_h__
8 #define nsStructuredCloneContainer_h__
10 #include <cstdint>
11 #include "mozilla/dom/ipc/StructuredCloneData.h"
12 #include "nsIStructuredCloneContainer.h"
13 #include "nsISupports.h"
15 class nsIVariant;
17 #define NS_STRUCTUREDCLONECONTAINER_CONTRACTID \
18 "@mozilla.org/docshell/structured-clone-container;1"
19 #define NS_STRUCTUREDCLONECONTAINER_CID \
20 { /* 38bd0634-0fd4-46f0-b85f-13ced889eeec */ \
21 0x38bd0634, 0x0fd4, 0x46f0, { \
22 0xb8, 0x5f, 0x13, 0xce, 0xd8, 0x89, 0xee, 0xec \
23 } \
26 class nsStructuredCloneContainer final
27 : public nsIStructuredCloneContainer,
28 public mozilla::dom::ipc::StructuredCloneData {
29 public:
30 nsStructuredCloneContainer();
31 explicit nsStructuredCloneContainer(uint32_t aVersion);
33 NS_DECL_ISUPPORTS
34 NS_DECL_NSISTRUCTUREDCLONECONTAINER
36 private:
37 ~nsStructuredCloneContainer();
39 uint32_t mVersion;
42 #endif