Skip to content

Commit

Permalink
Bug 1745912 - Use the same type in IDL and implementation file for Me…
Browse files Browse the repository at this point in the history
…diaTransportHandler. r=pehrsons

Depends on D133733

Differential Revision: https://phabricator.services.mozilla.com/D133737
  • Loading branch information
padenot committed Dec 14, 2021
1 parent 282dc29 commit f80d2b4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dom/media/webrtc/jsapi/MediaTransportHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class MediaTransportHandlerSTS : public MediaTransportHandler,
void EnsureProvisionalTransport(const std::string& aTransportId,
const std::string& aUfrag,
const std::string& aPwd,
size_t aComponentCount) override;
int aComponentCount) override;

void SetTargetForDefaultLocalAddressLookup(const std::string& aTargetIp,
uint16_t aTargetPort) override;
Expand Down Expand Up @@ -734,7 +734,7 @@ void MediaTransportHandlerSTS::SetProxyConfig(

void MediaTransportHandlerSTS::EnsureProvisionalTransport(
const std::string& aTransportId, const std::string& aUfrag,
const std::string& aPwd, size_t aComponentCount) {
const std::string& aPwd, int aComponentCount) {
MOZ_RELEASE_ASSERT(mInitPromise);

mInitPromise->Then(
Expand All @@ -746,9 +746,9 @@ void MediaTransportHandlerSTS::EnsureProvisionalTransport(

RefPtr<NrIceMediaStream> stream(mIceCtx->GetStream(aTransportId));
if (!stream) {
CSFLogDebug(LOGTAG, "%s: Creating ICE media stream=%s components=%u",
CSFLogDebug(LOGTAG, "%s: Creating ICE media stream=%s components=%d",
mIceCtx->name().c_str(), aTransportId.c_str(),
static_cast<unsigned>(aComponentCount));
aComponentCount);

std::ostringstream os;
os << mIceCtx->name() << " transport-id=" << aTransportId;
Expand Down
2 changes: 1 addition & 1 deletion dom/media/webrtc/jsapi/MediaTransportHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class MediaTransportHandler {
virtual void EnsureProvisionalTransport(const std::string& aTransportId,
const std::string& aLocalUfrag,
const std::string& aLocalPwd,
size_t aComponentCount) = 0;
int aComponentCount) = 0;

virtual void SetTargetForDefaultLocalAddressLookup(
const std::string& aTargetIp, uint16_t aTargetPort) = 0;
Expand Down
2 changes: 1 addition & 1 deletion dom/media/webrtc/jsapi/MediaTransportHandlerIPC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void MediaTransportHandlerIPC::SetProxyConfig(

void MediaTransportHandlerIPC::EnsureProvisionalTransport(
const std::string& aTransportId, const std::string& aLocalUfrag,
const std::string& aLocalPwd, size_t aComponentCount) {
const std::string& aLocalPwd, int aComponentCount) {
mInitPromise->Then(
mCallbackThread, __func__,
[=, self = RefPtr<MediaTransportHandlerIPC>(this)](bool /*dummy*/) {
Expand Down
2 changes: 1 addition & 1 deletion dom/media/webrtc/jsapi/MediaTransportHandlerIPC.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MediaTransportHandlerIPC : public MediaTransportHandler {
void EnsureProvisionalTransport(const std::string& aTransportId,
const std::string& aLocalUfrag,
const std::string& aLocalPwd,
size_t aComponentCount) override;
int aComponentCount) override;

void SetTargetForDefaultLocalAddressLookup(const std::string& aTargetIp,
uint16_t aTargetPort) override;
Expand Down
2 changes: 1 addition & 1 deletion media/webrtc/signaling/gtest/mediapipeline_unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class LoopbackTransport : public MediaTransportHandler {
void EnsureProvisionalTransport(const std::string& aTransportId,
const std::string& aLocalUfrag,
const std::string& aLocalPwd,
size_t aComponentCount) override {}
int aComponentCount) override {}

void SetTargetForDefaultLocalAddressLookup(const std::string& aTargetIp,
uint16_t aTargetPort) override {}
Expand Down

0 comments on commit f80d2b4

Please sign in to comment.