| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 // These are const to allow them to be called from const methods. | 140 // These are const to allow them to be called from const methods. |
| 141 rtc::Thread* signaling_thread() const { return signaling_thread_; } | 141 rtc::Thread* signaling_thread() const { return signaling_thread_; } |
| 142 rtc::Thread* worker_thread() const { return worker_thread_; } | 142 rtc::Thread* worker_thread() const { return worker_thread_; } |
| 143 cricket::PortAllocator* port_allocator() const { return port_allocator_; } | 143 cricket::PortAllocator* port_allocator() const { return port_allocator_; } |
| 144 | 144 |
| 145 // The ID of this session. | 145 // The ID of this session. |
| 146 const std::string& id() const { return sid_; } | 146 const std::string& id() const { return sid_; } |
| 147 | 147 |
| 148 bool Initialize( | 148 bool Initialize( |
| 149 const PeerConnectionFactoryInterface::Options& options, | 149 const PeerConnectionFactoryInterface::Options& options, |
| 150 const MediaConstraintsInterface* constraints, | |
| 151 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, | 150 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, |
| 152 const PeerConnectionInterface::RTCConfiguration& rtc_configuration); | 151 const PeerConnectionInterface::RTCConfiguration& rtc_configuration); |
| 153 // Deletes the voice, video and data channel and changes the session state | 152 // Deletes the voice, video and data channel and changes the session state |
| 154 // to STATE_CLOSED. | 153 // to STATE_CLOSED. |
| 155 void Close(); | 154 void Close(); |
| 156 | 155 |
| 157 // Returns true if we were the initial offerer. | 156 // Returns true if we were the initial offerer. |
| 158 bool initial_offerer() const { return initial_offerer_; } | 157 bool initial_offerer() const { return initial_offerer_; } |
| 159 | 158 |
| 160 // Returns the current state of the session. See the enum above for details. | 159 // Returns the current state of the session. See the enum above for details. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 190 | 189 |
| 191 // Get current SSL role for this channel's transport. | 190 // Get current SSL role for this channel's transport. |
| 192 // If |transport| is null, returns false. | 191 // If |transport| is null, returns false. |
| 193 bool GetSslRole(const cricket::BaseChannel* channel, rtc::SSLRole* role); | 192 bool GetSslRole(const cricket::BaseChannel* channel, rtc::SSLRole* role); |
| 194 | 193 |
| 195 void CreateOffer( | 194 void CreateOffer( |
| 196 CreateSessionDescriptionObserver* observer, | 195 CreateSessionDescriptionObserver* observer, |
| 197 const PeerConnectionInterface::RTCOfferAnswerOptions& options, | 196 const PeerConnectionInterface::RTCOfferAnswerOptions& options, |
| 198 const cricket::MediaSessionOptions& session_options); | 197 const cricket::MediaSessionOptions& session_options); |
| 199 void CreateAnswer(CreateSessionDescriptionObserver* observer, | 198 void CreateAnswer(CreateSessionDescriptionObserver* observer, |
| 200 const MediaConstraintsInterface* constraints, | |
| 201 const cricket::MediaSessionOptions& session_options); | 199 const cricket::MediaSessionOptions& session_options); |
| 202 // The ownership of |desc| will be transferred after this call. | 200 // The ownership of |desc| will be transferred after this call. |
| 203 bool SetLocalDescription(SessionDescriptionInterface* desc, | 201 bool SetLocalDescription(SessionDescriptionInterface* desc, |
| 204 std::string* err_desc); | 202 std::string* err_desc); |
| 205 // The ownership of |desc| will be transferred after this call. | 203 // The ownership of |desc| will be transferred after this call. |
| 206 bool SetRemoteDescription(SessionDescriptionInterface* desc, | 204 bool SetRemoteDescription(SessionDescriptionInterface* desc, |
| 207 std::string* err_desc); | 205 std::string* err_desc); |
| 208 bool ProcessIceMessage(const IceCandidateInterface* ice_candidate); | 206 bool ProcessIceMessage(const IceCandidateInterface* ice_candidate); |
| 209 | 207 |
| 210 bool SetIceTransports(PeerConnectionInterface::IceTransportsType type); | 208 bool SetIceTransports(PeerConnectionInterface::IceTransportsType type); |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 PeerConnectionInterface::BundlePolicy bundle_policy_; | 495 PeerConnectionInterface::BundlePolicy bundle_policy_; |
| 498 | 496 |
| 499 // Declares the RTCP mux policy for the WebRTCSession. | 497 // Declares the RTCP mux policy for the WebRTCSession. |
| 500 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; | 498 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; |
| 501 | 499 |
| 502 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); | 500 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); |
| 503 }; | 501 }; |
| 504 } // namespace webrtc | 502 } // namespace webrtc |
| 505 | 503 |
| 506 #endif // WEBRTC_API_WEBRTCSESSION_H_ | 504 #endif // WEBRTC_API_WEBRTCSESSION_H_ |
| OLD | NEW |