IPCForwards.h (1212B)
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 7 #ifndef mozilla_ipc_IPCForwards_h 8 #define mozilla_ipc_IPCForwards_h 9 10 // A few helpers to avoid having to include lots of stuff in headers. 11 12 namespace mozilla { 13 template <typename T> 14 class Maybe; 15 16 namespace ipc { 17 struct EndpointProcInfo; 18 class IProtocol; 19 } // namespace ipc 20 } // namespace mozilla 21 22 namespace IPC { 23 class Message; 24 class MessageReader; 25 class MessageWriter; 26 template <typename T, bool> 27 class ReadResult; 28 } // namespace IPC 29 30 // TODO(bug 1812271): Remove users of this macro. 31 #define ALLOW_DEPRECATED_READPARAM \ 32 public: \ 33 enum { kHasDeprecatedReadParamPrivateConstructor = true }; \ 34 template <typename, bool> \ 35 friend class IPC::ReadResult; \ 36 \ 37 private: 38 39 #endif