Bug 1787199 [wpt PR 35620] - Add tests for `VisibilityStateEntry`, a=testonly
[gecko.git] / dom / cache / IPCUtils.h
blob684521f2cf4becd5b781862805de33407be405f0
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_cache_IPCUtils_h
8 #define mozilla_dom_cache_IPCUtils_h
10 #include "ipc/EnumSerializer.h"
12 #include "mozilla/dom/cache/Types.h"
14 namespace IPC {
15 template <>
16 struct ParamTraits<mozilla::dom::cache::Namespace>
17 : public ContiguousEnumSerializer<
18 mozilla::dom::cache::Namespace,
19 mozilla::dom::cache::DEFAULT_NAMESPACE,
20 mozilla::dom::cache::NUMBER_OF_NAMESPACES> {};
22 template <>
23 struct ParamTraits<mozilla::dom::cache::OpenMode>
24 : public ContiguousEnumSerializer<mozilla::dom::cache::OpenMode,
25 mozilla::dom::cache::OpenMode::Eager,
26 mozilla::dom::cache::OpenMode::NumTypes> {
28 } // namespace IPC
30 #endif // mozilla_dom_cache_IPCUtils_h