michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * vim: set ts=8 sw=2 et tw=80: michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsStructuredCloneContainer_h__ michael@0: #define nsStructuredCloneContainer_h__ michael@0: michael@0: #include "nsIStructuredCloneContainer.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: #define NS_STRUCTUREDCLONECONTAINER_CONTRACTID \ michael@0: "@mozilla.org/docshell/structured-clone-container;1" michael@0: #define NS_STRUCTUREDCLONECONTAINER_CID \ michael@0: { /* 38bd0634-0fd4-46f0-b85f-13ced889eeec */ \ michael@0: 0x38bd0634, \ michael@0: 0x0fd4, \ michael@0: 0x46f0, \ michael@0: {0xb8, 0x5f, 0x13, 0xce, 0xd8, 0x89, 0xee, 0xec} \ michael@0: } michael@0: michael@0: class nsStructuredCloneContainer MOZ_FINAL : public nsIStructuredCloneContainer michael@0: { michael@0: public: michael@0: nsStructuredCloneContainer(); michael@0: ~nsStructuredCloneContainer(); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSISTRUCTUREDCLONECONTAINER michael@0: michael@0: private: michael@0: uint64_t* mData; michael@0: michael@0: // This needs to be size_t rather than a PR-type so it matches the JS API. michael@0: size_t mSize; michael@0: uint32_t mVersion; michael@0: }; michael@0: michael@0: #endif