forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1521879 - Part 1.1: Compensate for changes to how IPC headers are…
… generated in the last rebase. r=mjf Differential Revision: https://phabricator.services.mozilla.com/D19975 --HG-- rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.h => dom/media/webrtc/MediaTransportParent.h rename : media/webrtc/signaling/src/peerconnection/MediaTransportHandlerParent.cpp => media/webrtc/signaling/src/peerconnection/MediaTransportParent.cpp extra : moz-landing-system : lando
- Loading branch information
1 parent
4604113
commit bc939b7
Showing
14 changed files
with
242 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* 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 _MTRANSPORTCHILD_H__ | ||
#define _MTRANSPORTCHILD_H__ | ||
|
||
#include "mozilla/dom/PMediaTransportChild.h" | ||
|
||
namespace mozilla { | ||
class MediaTransportHandlerIPC; | ||
|
||
class MediaTransportChild : public dom::PMediaTransportChild { | ||
public: | ||
explicit MediaTransportChild(MediaTransportHandlerIPC* aUser); | ||
virtual ~MediaTransportChild(); | ||
mozilla::ipc::IPCResult RecvOnCandidate(const string& transportId, | ||
const CandidateInfo& candidateInfo); | ||
mozilla::ipc::IPCResult RecvOnAlpnNegotiated(const string& alpn); | ||
mozilla::ipc::IPCResult RecvOnGatheringStateChange(const int& state); | ||
mozilla::ipc::IPCResult RecvOnConnectionStateChange(const int& state); | ||
mozilla::ipc::IPCResult RecvOnPacketReceived(const string& transportId, | ||
const MediaPacket& packet); | ||
mozilla::ipc::IPCResult RecvOnEncryptedSending(const string& transportId, | ||
const MediaPacket& packet); | ||
mozilla::ipc::IPCResult RecvOnStateChange(const string& transportId, | ||
const int& state); | ||
mozilla::ipc::IPCResult RecvOnRtcpStateChange(const string& transportId, | ||
const int& state); | ||
|
||
private: | ||
RefPtr<MediaTransportHandlerIPC> mUser; | ||
}; | ||
|
||
} // namespace mozilla | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* 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 <memory> | ||
|
||
namespace mozilla { | ||
|
||
class MediaTransportParent : public dom::PMediaTransportParent { | ||
public: | ||
MediaTransportParent(); | ||
virtual ~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, nsTArray<RTCIceServer>&& iceServers, | ||
const RTCIceTransportPolicy& icePolicy); | ||
mozilla::ipc::IPCResult RecvSetProxyServer(const PBrowserOrId& browserOrId, | ||
const nsCString& alpn); | ||
mozilla::ipc::IPCResult RecvEnsureProvisionalTransport( | ||
const string& transportId, const string& localUfrag, | ||
const string& localPwd, const int& componentCount); | ||
mozilla::ipc::IPCResult RecvStartIceGathering( | ||
const bool& defaultRouteOnly, 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<uint8_t>&& keyDer, nsTArray<uint8_t>&& 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 bool& isOfferer, | ||
const StringVector& iceOptions); | ||
mozilla::ipc::IPCResult RecvSendPacket(const string& transportId, | ||
const MediaPacket& packet); | ||
mozilla::ipc::IPCResult RecvAddIceCandidate(const string& transportId, | ||
const string& candidate); | ||
mozilla::ipc::IPCResult RecvUpdateNetworkState(const bool& online); | ||
mozilla::ipc::IPCResult RecvGetIceStats( | ||
const string& transportId, const double& now, | ||
const RTCStatsReportInternal& reportIn, GetIceStatsResolver&& aResolve); | ||
|
||
void ActorDestroy(ActorDestroyReason aWhy); | ||
|
||
private: | ||
// Hide the sigslot/MediaTransportHandler stuff from IPC. | ||
class Impl; | ||
std::unique_ptr<Impl> mImpl; | ||
}; | ||
} // namespace mozilla | ||
#endif //_MTRANSPORTHANDLER_PARENT_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.