mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
0b3765204b
Differential Revision: https://phabricator.services.mozilla.com/D146074
30 lines
840 B
C++
30 lines
840 B
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef nsTransferableIPC_h__
|
|
#define nsTransferableIPC_h__
|
|
|
|
#include "ipc/EnumSerializer.h"
|
|
|
|
enum class TransferableDataType : uint8_t {
|
|
String,
|
|
CString,
|
|
InputStream,
|
|
ImageContainer,
|
|
Blob,
|
|
};
|
|
|
|
namespace IPC {
|
|
|
|
template <>
|
|
struct ParamTraits<TransferableDataType>
|
|
: public ContiguousEnumSerializerInclusive<TransferableDataType,
|
|
TransferableDataType::String,
|
|
TransferableDataType::Blob> {};
|
|
|
|
} // namespace IPC
|
|
|
|
#endif // nsTransferableIPC_h__
|