From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- dom/media/webrtc/MediaTransportParent.h | 70 +++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 dom/media/webrtc/MediaTransportParent.h (limited to 'dom/media/webrtc/MediaTransportParent.h') diff --git a/dom/media/webrtc/MediaTransportParent.h b/dom/media/webrtc/MediaTransportParent.h new file mode 100644 index 0000000000..9487c6f4af --- /dev/null +++ b/dom/media/webrtc/MediaTransportParent.h @@ -0,0 +1,70 @@ +/* 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 _MTRANSPORTHANDLER_PARENT_H__ +#define _MTRANSPORTHANDLER_PARENT_H__ + +#include "mozilla/dom/PMediaTransportParent.h" +#include + +namespace mozilla { + +class MediaTransportParent : public dom::PMediaTransportParent { + public: +#ifdef MOZ_WEBRTC + NS_INLINE_DECL_THREADSAFE_REFCOUNTING(MediaTransportParent, override) + + MediaTransportParent(); + + mozilla::ipc::IPCResult RecvGetIceLog(const nsCString& pattern, + GetIceLogResolver&& aResolve); + mozilla::ipc::IPCResult RecvClearIceLog(); + mozilla::ipc::IPCResult RecvEnterPrivateMode(); + mozilla::ipc::IPCResult RecvExitPrivateMode(); + mozilla::ipc::IPCResult RecvCreateIceCtx(const string& name); + mozilla::ipc::IPCResult RecvSetIceConfig( + nsTArray&& iceServers, + const RTCIceTransportPolicy& icePolicy); + mozilla::ipc::IPCResult RecvSetProxyConfig( + const net::WebrtcProxyConfig& aProxyConfig); + mozilla::ipc::IPCResult RecvEnsureProvisionalTransport( + const string& transportId, const string& localUfrag, + const string& localPwd, const int& componentCount); + mozilla::ipc::IPCResult RecvSetTargetForDefaultLocalAddressLookup( + const string& targetIp, uint16_t targetPort); + mozilla::ipc::IPCResult RecvStartIceGathering( + const bool& defaultRouteOnly, const bool& obfuscateAddresses, + const net::NrIceStunAddrArray& stunAddrs); + mozilla::ipc::IPCResult RecvActivateTransport( + const string& transportId, const string& localUfrag, + const string& localPwd, const int& componentCount, + const string& remoteUfrag, const string& remotePwd, + nsTArray&& keyDer, nsTArray&& certDer, + const int& authType, const bool& dtlsClient, + const DtlsDigestList& digests, const bool& privacyRequested); + mozilla::ipc::IPCResult RecvRemoveTransportsExcept( + const StringVector& transportIds); + mozilla::ipc::IPCResult RecvStartIceChecks(const bool& isControlling, + const StringVector& iceOptions); + mozilla::ipc::IPCResult RecvSendPacket(const string& transportId, + MediaPacket&& packet); + mozilla::ipc::IPCResult RecvAddIceCandidate(const string& transportId, + const string& candidate, + const string& ufrag, + const string& obfuscatedAddress); + mozilla::ipc::IPCResult RecvUpdateNetworkState(const bool& online); + mozilla::ipc::IPCResult RecvGetIceStats(const string& transportId, + const double& now, + GetIceStatsResolver&& aResolve); + + private: + virtual ~MediaTransportParent(); + + // Hide the sigslot/MediaTransportHandler stuff from IPC. + class Impl; + std::unique_ptr mImpl; +#endif // MOZ_WEBRTC +}; +} // namespace mozilla +#endif //_MTRANSPORTHANDLER_PARENT_H__ -- cgit v1.2.3