| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // These are const to allow them to be called from const methods. | 139 // These are const to allow them to be called from const methods. |
| 140 rtc::Thread* signaling_thread() const { return signaling_thread_; } | 140 rtc::Thread* signaling_thread() const { return signaling_thread_; } |
| 141 rtc::Thread* worker_thread() const { return worker_thread_; } | 141 rtc::Thread* worker_thread() const { return worker_thread_; } |
| 142 cricket::PortAllocator* port_allocator() const { return port_allocator_; } | 142 cricket::PortAllocator* port_allocator() const { return port_allocator_; } |
| 143 | 143 |
| 144 // The ID of this session. | 144 // The ID of this session. |
| 145 const std::string& id() const { return sid_; } | 145 const std::string& id() const { return sid_; } |
| 146 | 146 |
| 147 bool Initialize( | 147 bool Initialize( |
| 148 const PeerConnectionFactoryInterface::Options& options, | 148 const PeerConnectionFactoryInterface::Options& options, |
| 149 const MediaConstraintsInterface* constraints, | |
| 150 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, | 149 rtc::scoped_ptr<DtlsIdentityStoreInterface> dtls_identity_store, |
| 151 const PeerConnectionInterface::RTCConfiguration& rtc_configuration); | 150 const PeerConnectionInterface::RTCConfiguration& rtc_configuration); |
| 152 // Deletes the voice, video and data channel and changes the session state | 151 // Deletes the voice, video and data channel and changes the session state |
| 153 // to STATE_CLOSED. | 152 // to STATE_CLOSED. |
| 154 void Close(); | 153 void Close(); |
| 155 | 154 |
| 156 // Returns true if we were the initial offerer. | 155 // Returns true if we were the initial offerer. |
| 157 bool initial_offerer() const { return initial_offerer_; } | 156 bool initial_offerer() const { return initial_offerer_; } |
| 158 | 157 |
| 159 // Returns the current state of the session. See the enum above for details. | 158 // Returns the current state of the session. See the enum above for details. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 187 | 186 |
| 188 // Get current SSL role for this channel's transport. | 187 // Get current SSL role for this channel's transport. |
| 189 // If |transport| is null, returns false. | 188 // If |transport| is null, returns false. |
| 190 bool GetSslRole(const cricket::BaseChannel* channel, rtc::SSLRole* role); | 189 bool GetSslRole(const cricket::BaseChannel* channel, rtc::SSLRole* role); |
| 191 | 190 |
| 192 void CreateOffer( | 191 void CreateOffer( |
| 193 CreateSessionDescriptionObserver* observer, | 192 CreateSessionDescriptionObserver* observer, |
| 194 const PeerConnectionInterface::RTCOfferAnswerOptions& options, | 193 const PeerConnectionInterface::RTCOfferAnswerOptions& options, |
| 195 const cricket::MediaSessionOptions& session_options); | 194 const cricket::MediaSessionOptions& session_options); |
| 196 void CreateAnswer(CreateSessionDescriptionObserver* observer, | 195 void CreateAnswer(CreateSessionDescriptionObserver* observer, |
| 197 const MediaConstraintsInterface* constraints, | |
| 198 const cricket::MediaSessionOptions& session_options); | 196 const cricket::MediaSessionOptions& session_options); |
| 199 // The ownership of |desc| will be transferred after this call. | 197 // The ownership of |desc| will be transferred after this call. |
| 200 bool SetLocalDescription(SessionDescriptionInterface* desc, | 198 bool SetLocalDescription(SessionDescriptionInterface* desc, |
| 201 std::string* err_desc); | 199 std::string* err_desc); |
| 202 // The ownership of |desc| will be transferred after this call. | 200 // The ownership of |desc| will be transferred after this call. |
| 203 bool SetRemoteDescription(SessionDescriptionInterface* desc, | 201 bool SetRemoteDescription(SessionDescriptionInterface* desc, |
| 204 std::string* err_desc); | 202 std::string* err_desc); |
| 205 bool ProcessIceMessage(const IceCandidateInterface* ice_candidate); | 203 bool ProcessIceMessage(const IceCandidateInterface* ice_candidate); |
| 206 | 204 |
| 207 bool SetIceTransports(PeerConnectionInterface::IceTransportsType type); | 205 bool SetIceTransports(PeerConnectionInterface::IceTransportsType type); |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 PeerConnectionInterface::BundlePolicy bundle_policy_; | 494 PeerConnectionInterface::BundlePolicy bundle_policy_; |
| 497 | 495 |
| 498 // Declares the RTCP mux policy for the WebRTCSession. | 496 // Declares the RTCP mux policy for the WebRTCSession. |
| 499 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; | 497 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; |
| 500 | 498 |
| 501 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); | 499 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); |
| 502 }; | 500 }; |
| 503 } // namespace webrtc | 501 } // namespace webrtc |
| 504 | 502 |
| 505 #endif // WEBRTC_API_WEBRTCSESSION_H_ | 503 #endif // WEBRTC_API_WEBRTCSESSION_H_ |
| OLD | NEW |