| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 146 |
| 147 // These are const to allow them to be called from const methods. | 147 // These are const to allow them to be called from const methods. |
| 148 rtc::Thread* worker_thread() const { return worker_thread_; } | 148 rtc::Thread* worker_thread() const { return worker_thread_; } |
| 149 rtc::Thread* signaling_thread() const { return signaling_thread_; } | 149 rtc::Thread* signaling_thread() const { return signaling_thread_; } |
| 150 | 150 |
| 151 // The ID of this session. | 151 // The ID of this session. |
| 152 const std::string& id() const { return sid_; } | 152 const std::string& id() const { return sid_; } |
| 153 | 153 |
| 154 bool Initialize( | 154 bool Initialize( |
| 155 const PeerConnectionFactoryInterface::Options& options, | 155 const PeerConnectionFactoryInterface::Options& options, |
| 156 std::unique_ptr<DtlsIdentityStoreInterface> dtls_identity_store, | 156 std::unique_ptr<rtc::RTCCertificateGeneratorInterface> cert_generator, |
| 157 const PeerConnectionInterface::RTCConfiguration& rtc_configuration); | 157 const PeerConnectionInterface::RTCConfiguration& rtc_configuration); |
| 158 // Deletes the voice, video and data channel and changes the session state | 158 // Deletes the voice, video and data channel and changes the session state |
| 159 // to STATE_CLOSED. | 159 // to STATE_CLOSED. |
| 160 void Close(); | 160 void Close(); |
| 161 | 161 |
| 162 // Returns true if we were the initial offerer. | 162 // Returns true if we were the initial offerer. |
| 163 bool initial_offerer() const { return initial_offerer_; } | 163 bool initial_offerer() const { return initial_offerer_; } |
| 164 | 164 |
| 165 // Returns the current state of the session. See the enum above for details. | 165 // Returns the current state of the session. See the enum above for details. |
| 166 // Each time the state changes, we will fire this signal. | 166 // Each time the state changes, we will fire this signal. |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 PeerConnectionInterface::BundlePolicy bundle_policy_; | 526 PeerConnectionInterface::BundlePolicy bundle_policy_; |
| 527 | 527 |
| 528 // Declares the RTCP mux policy for the WebRTCSession. | 528 // Declares the RTCP mux policy for the WebRTCSession. |
| 529 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; | 529 PeerConnectionInterface::RtcpMuxPolicy rtcp_mux_policy_; |
| 530 | 530 |
| 531 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); | 531 RTC_DISALLOW_COPY_AND_ASSIGN(WebRtcSession); |
| 532 }; | 532 }; |
| 533 } // namespace webrtc | 533 } // namespace webrtc |
| 534 | 534 |
| 535 #endif // WEBRTC_API_WEBRTCSESSION_H_ | 535 #endif // WEBRTC_API_WEBRTCSESSION_H_ |
| OLD | NEW |