Chromium Code Reviews| Index: talk/app/webrtc/webrtcsession.h |
| diff --git a/talk/app/webrtc/webrtcsession.h b/talk/app/webrtc/webrtcsession.h |
| index b3d76bf6b443043ec402cadd002a96697a1f5dae..6e1a76eb1733c930595a8743daeff6013733dc60 100644 |
| --- a/talk/app/webrtc/webrtcsession.h |
| +++ b/talk/app/webrtc/webrtcsession.h |
| @@ -114,7 +114,6 @@ class IceObserver { |
| class WebRtcSession : public cricket::BaseSession, |
| public AudioProviderInterface, |
| - public DataChannelFactory, |
| public VideoProviderInterface, |
| public DtmfProviderInterface, |
| public DataChannelProviderInterface { |
| @@ -122,8 +121,7 @@ class WebRtcSession : public cricket::BaseSession, |
| WebRtcSession(cricket::ChannelManager* channel_manager, |
| rtc::Thread* signaling_thread, |
| rtc::Thread* worker_thread, |
| - cricket::PortAllocator* port_allocator, |
| - MediaStreamSignaling* mediastream_signaling); |
| + cricket::PortAllocator* port_allocator); |
| virtual ~WebRtcSession(); |
| bool Initialize( |
| @@ -149,10 +147,6 @@ class WebRtcSession : public cricket::BaseSession, |
| return data_channel_.get(); |
| } |
| - virtual const MediaStreamSignaling* mediastream_signaling() const { |
| - return mediastream_signaling_; |
| - } |
| - |
| void SetSdesPolicy(cricket::SecurePolicy secure_policy); |
| cricket::SecurePolicy SdesPolicy() const; |
| @@ -165,9 +159,11 @@ class WebRtcSession : public cricket::BaseSession, |
| void CreateOffer( |
| CreateSessionDescriptionObserver* observer, |
| - const PeerConnectionInterface::RTCOfferAnswerOptions& options); |
| + const PeerConnectionInterface::RTCOfferAnswerOptions& options, |
| + const cricket::MediaSessionOptions& session_options); |
| void CreateAnswer(CreateSessionDescriptionObserver* observer, |
| - const MediaConstraintsInterface* constraints); |
| + const MediaConstraintsInterface* constraints, |
| + const cricket::MediaSessionOptions& session_options); |
| // The ownership of |desc| will be transferred after this call. |
| bool SetLocalDescription(SessionDescriptionInterface* desc, |
| std::string* err_desc); |
| @@ -253,11 +249,6 @@ class WebRtcSession : public cricket::BaseSession, |
| virtual bool GetRemoteSSLCertificate(const std::string& transport_name, |
| rtc::SSLCertificate** cert); |
| - // Implements DataChannelFactory. |
| - rtc::scoped_refptr<DataChannel> CreateDataChannel( |
| - const std::string& label, |
| - const InternalDataChannelInit* config) override; |
| - |
| cricket::DataChannelType data_channel_type() const; |
| bool IceRestartPending() const; |
| @@ -279,6 +270,13 @@ class WebRtcSession : public cricket::BaseSession, |
| metrics_observer_ = metrics_observer; |
| } |
| + sigslot::signal0<> SignalVoiceChannelDestroyed; |
| + sigslot::signal0<> SignalVideoChannelDestroyed; |
| + sigslot::signal0<> SignalDataChannelCreated; |
| + sigslot::signal0<> SignalDataChannelDestroyed; |
|
pthatcher1
2015/10/07 02:50:51
Can you comment when these will be fired?
Taylor Brandstetter
2015/10/09 19:54:09
Done. I also added "SignalVoiceChannelCreated" and
|
| + sigslot::signal2<const std::string&, const InternalDataChannelInit&> |
| + SignalDataChannelCreationRequested; |
|
pthatcher1
2015/10/07 02:50:51
Can you comment what the parameters of this?
Taylor Brandstetter
2015/10/09 19:54:09
Done.
|
| + |
| private: |
| // Indicates the type of SessionDescription in a call to SetLocalDescription |
| // and SetRemoteDescription. |
| @@ -388,7 +386,6 @@ class WebRtcSession : public cricket::BaseSession, |
| rtc::scoped_ptr<cricket::VideoChannel> video_channel_; |
| rtc::scoped_ptr<cricket::DataChannel> data_channel_; |
| cricket::ChannelManager* channel_manager_; |
| - MediaStreamSignaling* mediastream_signaling_; |
| IceObserver* ice_observer_; |
| PeerConnectionInterface::IceConnectionState ice_connection_state_; |
| bool ice_connection_receiving_; |
| @@ -412,10 +409,6 @@ class WebRtcSession : public cricket::BaseSession, |
| rtc::scoped_ptr<WebRtcSessionDescriptionFactory> |
| webrtc_session_desc_factory_; |
| - sigslot::signal0<> SignalVoiceChannelDestroyed; |
| - sigslot::signal0<> SignalVideoChannelDestroyed; |
| - sigslot::signal0<> SignalDataChannelDestroyed; |
| - |
| // Member variables for caching global options. |
| cricket::AudioOptions audio_options_; |
| cricket::VideoOptions video_options_; |