tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ClientIPCUtils.h (1393B)


      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/. */
      6 #ifndef _mozilla_dom_ClientIPCUtils_h
      7 #define _mozilla_dom_ClientIPCUtils_h
      8 
      9 #include "X11UndefineNone.h"
     10 #include "ipc/EnumSerializer.h"
     11 #include "mozilla/StorageAccess.h"
     12 #include "mozilla/dom/BindingIPCUtils.h"
     13 #include "mozilla/dom/ClientBinding.h"
     14 #include "mozilla/dom/ClientsBinding.h"
     15 #include "mozilla/dom/DocumentBinding.h"
     16 
     17 namespace IPC {
     18 template <>
     19 struct ParamTraits<mozilla::dom::ClientType>
     20    : public mozilla::dom::WebIDLEnumSerializer<mozilla::dom::ClientType> {};
     21 
     22 template <>
     23 struct ParamTraits<mozilla::dom::FrameType>
     24    : public mozilla::dom::WebIDLEnumSerializer<mozilla::dom::FrameType> {};
     25 
     26 template <>
     27 struct ParamTraits<mozilla::dom::VisibilityState>
     28    : public mozilla::dom::WebIDLEnumSerializer<mozilla::dom::VisibilityState> {
     29 };
     30 
     31 template <>
     32 struct ParamTraits<mozilla::StorageAccess>
     33    : public ContiguousEnumSerializer<
     34          mozilla::StorageAccess,
     35          mozilla::StorageAccess::ePartitionForeignOrDeny,
     36          mozilla::StorageAccess::eNumValues> {};
     37 }  // namespace IPC
     38 
     39 #endif  // _mozilla_dom_ClientIPCUtils_h