ReAdd PeerConnectionInterface::AddStream to fix Chrome build.

AddStream(MediaStreamInterface* stream, const MediaConstraintsInterface* constraints);
This will be removed once Chrome has been updated.

R=tommi@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/27919004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7608 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
perkj@webrtc.org
2014-11-04 13:01:33 +00:00
parent 18de6f9622
commit b5d045e94d
4 changed files with 18 additions and 8 deletions

View File

@ -252,17 +252,18 @@ class PeerConnectionInterface : public rtc::RefCountInterface {
virtual rtc::scoped_refptr<StreamCollectionInterface>
remote_streams() = 0;
// Deprecated:
// TODO(perkj): Remove once its not used by Chrome.
virtual bool AddStream(MediaStreamInterface* stream,
const MediaConstraintsInterface* constraints) {
return AddStream(stream);
}
// Add a new MediaStream to be sent on this PeerConnection.
// Note that a SessionDescription negotiation is needed before the
// remote peer can receive the stream.
virtual bool AddStream(MediaStreamInterface* stream) = 0;
// TODO(perkj): Make pure virtual once Chrome mocks have implemented.
virtual bool AddStream(MediaStreamInterface* stream) { return false;}
// Deprecated:
// TODO(perkj): Remove once its not used by Chrome.
virtual bool AddStream(MediaStreamInterface* stream,
const MediaConstraintsInterface* constraints) {
return false;
}
// Remove a MediaStream from this PeerConnection.
// Note that a SessionDescription negotiation is need before the