Revert "Delete leftover includes and declarations for MediaConstraintsInterface"
This reverts commit a1e4ae23715867eca58488be307759ffa5901463. Reason for revert: Breakage in downstream code still using constraints. Original change's description: > Delete leftover includes and declarations for MediaConstraintsInterface > > Bug: webrtc:9239 > Change-Id: I1f49d6847572faecd6022a44222d6271302fe443 > Reviewed-on: https://webrtc-review.googlesource.com/95721 > Commit-Queue: Niels Moller <nisse@webrtc.org> > Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#24442} TBR=kwiberg@webrtc.org,nisse@webrtc.org,hta@webrtc.org Change-Id: Idbef4c57a0d3b82e94a431c5407a86c9fcd4be41 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: webrtc:9239 Reviewed-on: https://webrtc-review.googlesource.com/96160 Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24444}
This commit is contained in:
parent
b615d1af90
commit
ec4a060a55
@ -15,6 +15,7 @@
|
||||
#include <string>
|
||||
#include <utility> // For std::move.
|
||||
|
||||
#include "api/mediaconstraintsinterface.h"
|
||||
#include "api/mediastreaminterface.h"
|
||||
#include "api/mediatypes.h"
|
||||
#include "api/ortc/ortcrtpreceiverinterface.h"
|
||||
@ -24,7 +25,6 @@
|
||||
#include "api/ortc/rtptransportinterface.h"
|
||||
#include "api/ortc/srtptransportinterface.h"
|
||||
#include "api/ortc/udptransportinterface.h"
|
||||
#include "api/peerconnectioninterface.h"
|
||||
#include "api/rtcerror.h"
|
||||
#include "api/rtpparameters.h"
|
||||
#include "rtc_base/network.h"
|
||||
|
||||
@ -192,6 +192,16 @@ PeerConnectionFactoryDependencies::PeerConnectionFactoryDependencies(
|
||||
PeerConnectionFactoryDependencies::~PeerConnectionFactoryDependencies() =
|
||||
default;
|
||||
|
||||
rtc::scoped_refptr<PeerConnectionInterface>
|
||||
PeerConnectionFactoryInterface::CreatePeerConnection(
|
||||
const PeerConnectionInterface::RTCConfiguration& configuration,
|
||||
const MediaConstraintsInterface* constraints,
|
||||
std::unique_ptr<cricket::PortAllocator> allocator,
|
||||
std::unique_ptr<rtc::RTCCertificateGeneratorInterface> cert_generator,
|
||||
PeerConnectionObserver* observer) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
rtc::scoped_refptr<PeerConnectionInterface>
|
||||
PeerConnectionFactoryInterface::CreatePeerConnection(
|
||||
const PeerConnectionInterface::RTCConfiguration& configuration,
|
||||
|
||||
@ -1233,6 +1233,15 @@ class PeerConnectionFactoryInterface : public rtc::RefCountInterface {
|
||||
std::unique_ptr<rtc::RTCCertificateGeneratorInterface> cert_generator,
|
||||
PeerConnectionObserver* observer);
|
||||
|
||||
// Deprecated; should use RTCConfiguration for everything that previously
|
||||
// used constraints.
|
||||
virtual rtc::scoped_refptr<PeerConnectionInterface> CreatePeerConnection(
|
||||
const PeerConnectionInterface::RTCConfiguration& configuration,
|
||||
const MediaConstraintsInterface* constraints,
|
||||
std::unique_ptr<cricket::PortAllocator> allocator,
|
||||
std::unique_ptr<rtc::RTCCertificateGeneratorInterface> cert_generator,
|
||||
PeerConnectionObserver* observer);
|
||||
|
||||
// Returns the capabilities of an RTP sender of type |kind|.
|
||||
// If for some reason you pass in MEDIA_TYPE_DATA, returns an empty structure.
|
||||
// TODO(orphis): Make pure virtual when all subclasses implement it.
|
||||
|
||||
@ -88,12 +88,18 @@ class MockPeerConnectionInterface
|
||||
const SessionDescriptionInterface*());
|
||||
MOCK_CONST_METHOD0(pending_remote_description,
|
||||
const SessionDescriptionInterface*());
|
||||
MOCK_METHOD2(CreateOffer,
|
||||
void(CreateSessionDescriptionObserver*,
|
||||
const MediaConstraintsInterface*));
|
||||
MOCK_METHOD2(CreateOffer,
|
||||
void(CreateSessionDescriptionObserver*,
|
||||
const RTCOfferAnswerOptions&));
|
||||
MOCK_METHOD2(CreateAnswer,
|
||||
void(CreateSessionDescriptionObserver*,
|
||||
const RTCOfferAnswerOptions&));
|
||||
MOCK_METHOD2(CreateAnswer,
|
||||
void(CreateSessionDescriptionObserver*,
|
||||
const MediaConstraintsInterface*));
|
||||
MOCK_METHOD2(SetLocalDescription,
|
||||
void(SetSessionDescriptionObserver*,
|
||||
SessionDescriptionInterface*));
|
||||
|
||||
@ -20,6 +20,7 @@
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/jsepicecandidate.h"
|
||||
#include "api/jsepsessiondescription.h"
|
||||
#include "api/mediaconstraintsinterface.h"
|
||||
#include "api/mediastreamproxy.h"
|
||||
#include "api/mediastreamtrackproxy.h"
|
||||
#include "call/call.h"
|
||||
|
||||
@ -85,6 +85,7 @@ using webrtc::DtmfSender;
|
||||
using webrtc::DtmfSenderInterface;
|
||||
using webrtc::DtmfSenderObserverInterface;
|
||||
using webrtc::FakeVideoTrackRenderer;
|
||||
using webrtc::MediaConstraintsInterface;
|
||||
using webrtc::MediaStreamInterface;
|
||||
using webrtc::MediaStreamTrackInterface;
|
||||
using webrtc::MockCreateSessionDescriptionObserver;
|
||||
|
||||
@ -40,6 +40,7 @@ using testing::_;
|
||||
|
||||
using webrtc::DataChannelInterface;
|
||||
using webrtc::FakeConstraints;
|
||||
using webrtc::MediaConstraintsInterface;
|
||||
using webrtc::MediaStreamInterface;
|
||||
using webrtc::PeerConnectionInterface;
|
||||
using webrtc::SdpSemantics;
|
||||
|
||||
@ -417,6 +417,7 @@ using webrtc::AudioTrackInterface;
|
||||
using webrtc::DataBuffer;
|
||||
using webrtc::DataChannelInterface;
|
||||
using webrtc::IceCandidateInterface;
|
||||
using webrtc::MediaConstraintsInterface;
|
||||
using webrtc::MediaStream;
|
||||
using webrtc::MediaStreamInterface;
|
||||
using webrtc::MediaStreamTrackInterface;
|
||||
|
||||
@ -118,12 +118,18 @@ class MockPeerConnection
|
||||
const SessionDescriptionInterface*());
|
||||
MOCK_CONST_METHOD0(pending_remote_description,
|
||||
const SessionDescriptionInterface*());
|
||||
MOCK_METHOD2(CreateOffer,
|
||||
void(CreateSessionDescriptionObserver*,
|
||||
const MediaConstraintsInterface*));
|
||||
MOCK_METHOD2(CreateOffer,
|
||||
void(CreateSessionDescriptionObserver*,
|
||||
const RTCOfferAnswerOptions&));
|
||||
MOCK_METHOD2(CreateAnswer,
|
||||
void(CreateSessionDescriptionObserver*,
|
||||
const RTCOfferAnswerOptions&));
|
||||
MOCK_METHOD2(CreateAnswer,
|
||||
void(CreateSessionDescriptionObserver*,
|
||||
const MediaConstraintsInterface*));
|
||||
MOCK_METHOD2(SetLocalDescription,
|
||||
void(SetSessionDescriptionObserver*,
|
||||
SessionDescriptionInterface*));
|
||||
|
||||
@ -26,6 +26,7 @@
|
||||
using webrtc::FakeConstraints;
|
||||
using webrtc::FakeVideoTrackRenderer;
|
||||
using webrtc::IceCandidateInterface;
|
||||
using webrtc::MediaConstraintsInterface;
|
||||
using webrtc::MediaStreamInterface;
|
||||
using webrtc::MediaStreamTrackInterface;
|
||||
using webrtc::MockSetSessionDescriptionObserver;
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
#include "absl/memory/memory.h"
|
||||
#include "api/jsep.h"
|
||||
#include "api/jsepsessiondescription.h"
|
||||
#include "api/mediaconstraintsinterface.h"
|
||||
#include "rtc_base/checks.h"
|
||||
#include "rtc_base/sslidentity.h"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user