michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_ipc_InputStreamUtils_h michael@0: #define mozilla_ipc_InputStreamUtils_h michael@0: michael@0: #include "mozilla/ipc/InputStreamParams.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsIInputStream.h" michael@0: #include "nsTArray.h" michael@0: michael@0: namespace mozilla { michael@0: namespace ipc { michael@0: michael@0: class FileDescriptor; michael@0: michael@0: void michael@0: SerializeInputStream(nsIInputStream* aInputStream, michael@0: InputStreamParams& aParams, michael@0: nsTArray& aFileDescriptors); michael@0: michael@0: void michael@0: SerializeInputStream(nsIInputStream* aInputStream, michael@0: OptionalInputStreamParams& aParams, michael@0: nsTArray& aFileDescriptors); michael@0: michael@0: already_AddRefed michael@0: DeserializeInputStream(const InputStreamParams& aParams, michael@0: const nsTArray& aFileDescriptors); michael@0: michael@0: already_AddRefed michael@0: DeserializeInputStream(const OptionalInputStreamParams& aParams, michael@0: const nsTArray& aFileDescriptors); michael@0: michael@0: } // namespace ipc michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_ipc_InputStreamUtils_h