StructuredClone.h 713 B

12345678910111213141516171819202122232425
  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. class JSObject;
  6. struct JSContext;
  7. struct JSStructuredCloneReader;
  8. struct JSStructuredCloneWriter;
  9. namespace mozilla {
  10. namespace dom {
  11. class ImageData;
  12. JSObject*
  13. ReadStructuredCloneImageData(JSContext* aCx, JSStructuredCloneReader* aReader);
  14. bool
  15. WriteStructuredCloneImageData(JSContext* aCx, JSStructuredCloneWriter* aWriter,
  16. ImageData* aImageData);
  17. } // namespace dom
  18. } // namespace mozilla