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"
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
> {};
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
> {
30 #endif // mozilla_dom_cache_IPCUtils_h