SerializationHelpers.h 742 B

123456789101112131415161718192021222324
  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 file,
  3. * You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #ifndef mozilla_dom_filehandle_SerializationHelpers_h
  5. #define mozilla_dom_filehandle_SerializationHelpers_h
  6. #include "ipc/IPCMessageUtils.h"
  7. #include "mozilla/dom/FileModeBinding.h"
  8. namespace IPC {
  9. template <>
  10. struct ParamTraits<mozilla::dom::FileMode> :
  11. public ContiguousEnumSerializer<mozilla::dom::FileMode,
  12. mozilla::dom::FileMode::Readonly,
  13. mozilla::dom::FileMode::EndGuard_>
  14. { };
  15. } // namespace IPC
  16. #endif // mozilla_dom_filehandle_SerializationHelpers_h