Skip to content

Commit

Permalink
Add some stub impl.
Browse files Browse the repository at this point in the history
  • Loading branch information
docfaraday committed Sep 17, 2014
1 parent 21a635a commit a8a93cc
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 14 deletions.
22 changes: 22 additions & 0 deletions media/webrtc/signaling/src/sdp/SipccSdp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,36 @@

namespace mozilla {

SdpOrigin
SipccSdp::GetOrigin() const {
return SdpOrigin();
}

std::string
SipccSdp::GetSessionName() const {
return "TODO";
}

std::string
SipccSdp::GetBandwidth(std::string type) const {
return "TODO";
}

const SdpMediaSection &
SipccSdp::GetMediaSection(uint16_t level) const
{
if (level >= mMediaSections.size()) {
MOZ_CRASH();
}
return mMediaSections[level];
}

SdpMediaSection &
SipccSdp::GetMediaSection(uint16_t level)
{
if (level >= mMediaSections.size()) {
MOZ_CRASH();
}
return mMediaSections[level];
}

Expand Down
30 changes: 16 additions & 14 deletions media/webrtc/signaling/src/sdp/SipccSdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,28 @@ class SipccSdp MOZ_FINAL : public Sdp
sdp_free_description(mSdp);
}

const SdpAttributeList& GetAttributeList() const {
return mAttributeList;
virtual SdpOrigin GetOrigin() const MOZ_OVERRIDE;
virtual std::string GetSessionName() const MOZ_OVERRIDE;
// Note: connection information is always retrieved from media sections
virtual std::string GetBandwidth(std::string type) const MOZ_OVERRIDE;

virtual uint16_t GetMediaSectionCount() const MOZ_OVERRIDE {
return static_cast<uint16_t>(mMediaSections.size());
}
SdpAttributeList& GetAttributeList() {

virtual const SdpAttributeList &GetAttributeList() const MOZ_OVERRIDE {
return mAttributeList;
}

const SdpMediaSection &GetMediaSection(uint16_t level) const {
if (level >= mMediaSections.length()) {
MOZ_CRASH();
}
return mMediaSections[level];
}
SdpMediaSection &GetMediaSection(uint16_t level) {
if (level >= mMediaSections.length()) {
MOZ_CRASH();
}
return mMediaSections[level];
virtual SdpAttributeList &GetAttributeList() MOZ_OVERRIDE {
return mAttributeList;
}

virtual const SdpMediaSection &GetMediaSection(
uint16_t level) const MOZ_OVERRIDE;

virtual SdpMediaSection &GetMediaSection(uint16_t level) MOZ_OVERRIDE;

private:
SipccSdp(sdp_t* sdp) : mSdp(sdp) {}

Expand Down

0 comments on commit a8a93cc

Please sign in to comment.