SerializationHelpers.h 895 B

1234567891011121314151617181920212223242526
  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 file,
  4. * You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef mozilla_dom_quota_SerializationHelpers_h
  6. #define mozilla_dom_quota_SerializationHelpers_h
  7. #include "ipc/IPCMessageUtils.h"
  8. #include "mozilla/dom/quota/PersistenceType.h"
  9. namespace IPC {
  10. template <>
  11. struct ParamTraits<mozilla::dom::quota::PersistenceType> :
  12. public ContiguousEnumSerializer<
  13. mozilla::dom::quota::PersistenceType,
  14. mozilla::dom::quota::PERSISTENCE_TYPE_PERSISTENT,
  15. mozilla::dom::quota::PERSISTENCE_TYPE_INVALID>
  16. { };
  17. } // namespace IPC
  18. #endif // mozilla_dom_quota_SerializationHelpers_h