зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1660470 - Move IPDLParamTraits for FileDescriptor out of FileDescriptor.h. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93321 Depends on D93248
This commit is contained in:
Родитель
0fc89f327c
Коммит
dfef212e61
|
@ -9,9 +9,7 @@
|
|||
|
||||
#include "base/basictypes.h"
|
||||
#include "base/process.h"
|
||||
#include "ipc/IPCMessageUtils.h"
|
||||
#include "mozilla/UniquePtrExtensions.h"
|
||||
#include "mozilla/ipc/IPDLParamTraits.h"
|
||||
|
||||
#ifdef XP_UNIX
|
||||
# include "base/file_descriptor_posix.h"
|
||||
|
@ -98,16 +96,6 @@ class FileDescriptor {
|
|||
UniquePlatformHandle mHandle;
|
||||
};
|
||||
|
||||
template <>
|
||||
struct IPDLParamTraits<FileDescriptor> {
|
||||
typedef FileDescriptor paramType;
|
||||
|
||||
static void Write(IPC::Message* aMsg, IProtocol* aActor,
|
||||
const paramType& aParam);
|
||||
static bool Read(const IPC::Message* aMsg, PickleIterator* aIter,
|
||||
IProtocol* aActor, paramType* aResult);
|
||||
};
|
||||
|
||||
} // namespace ipc
|
||||
} // namespace mozilla
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include "mozilla/LinkedList.h"
|
||||
#include "mozilla/Monitor.h"
|
||||
#include "mozilla/MozPromise.h"
|
||||
#include "mozilla/StaticMutex.h"
|
||||
#include "mozilla/StaticPtr.h"
|
||||
#include "mozilla/UniquePtr.h"
|
||||
|
||||
|
|
|
@ -1026,4 +1026,16 @@ struct ParamTraits<mozilla::ipc::ManagedEndpoint<PFooSide>> {
|
|||
|
||||
} // namespace IPC
|
||||
|
||||
namespace mozilla::ipc {
|
||||
template <>
|
||||
struct IPDLParamTraits<FileDescriptor> {
|
||||
typedef FileDescriptor paramType;
|
||||
|
||||
static void Write(IPC::Message* aMsg, IProtocol* aActor,
|
||||
const paramType& aParam);
|
||||
static bool Read(const IPC::Message* aMsg, PickleIterator* aIter,
|
||||
IProtocol* aActor, paramType* aResult);
|
||||
};
|
||||
} // namespace mozilla::ipc
|
||||
|
||||
#endif // mozilla_ipc_ProtocolUtils_h
|
||||
|
|
Загрузка…
Ссылка в новой задаче