DataStorageIPCUtils.h 792 B

123456789101112131415161718192021
  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. #ifndef ipc_DataStorageIPCUtils_h
  6. #define ipc_DataStorageIPCUtils_h
  7. #include "ipc/IPCMessageUtils.h"
  8. #include "mozilla/DataStorage.h"
  9. namespace IPC {
  10. template<>
  11. struct ParamTraits<mozilla::DataStorageType> :
  12. public ContiguousEnumSerializer<mozilla::DataStorageType,
  13. mozilla::DataStorage_Persistent,
  14. mozilla::DataStorageType(mozilla::DataStorage_Private + 1)> {};
  15. } // namespace IPC
  16. #endif // mozilla_DataStorageIPCUtils_hh