OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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 const std::string& error_desc() const { return error_desc_; } | 139 const std::string& error_desc() const { return error_desc_; } |
140 sigslot::signal2<BaseSession* , Error> SignalError; | 140 sigslot::signal2<BaseSession* , Error> SignalError; |
141 | 141 |
142 // Updates the state, signaling if necessary. | 142 // Updates the state, signaling if necessary. |
143 virtual void SetState(State state); | 143 virtual void SetState(State state); |
144 | 144 |
145 // Updates the error state, signaling if necessary. | 145 // Updates the error state, signaling if necessary. |
146 // TODO(ronghuawu): remove the SetError method that doesn't take |error_desc|. | 146 // TODO(ronghuawu): remove the SetError method that doesn't take |error_desc|. |
147 virtual void SetError(Error error, const std::string& error_desc); | 147 virtual void SetError(Error error, const std::string& error_desc); |
148 | 148 |
149 void SetIceConnectionReceivingTimeout(int timeout_ms); | 149 void SetIceConfig(const IceConfig& ice_config); |
150 | 150 |
151 // Start gathering candidates for any new transports, or transports doing an | 151 // Start gathering candidates for any new transports, or transports doing an |
152 // ICE restart. | 152 // ICE restart. |
153 void MaybeStartGathering(); | 153 void MaybeStartGathering(); |
154 | 154 |
155 protected: | 155 protected: |
156 bool PushdownTransportDescription(ContentSource source, | 156 bool PushdownTransportDescription(ContentSource source, |
157 ContentAction action, | 157 ContentAction action, |
158 std::string* error_desc); | 158 std::string* error_desc); |
159 | 159 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 const std::string sid_; | 193 const std::string sid_; |
194 bool initiator_; | 194 bool initiator_; |
195 rtc::scoped_ptr<TransportController> transport_controller_; | 195 rtc::scoped_ptr<TransportController> transport_controller_; |
196 rtc::scoped_ptr<const SessionDescription> local_description_; | 196 rtc::scoped_ptr<const SessionDescription> local_description_; |
197 rtc::scoped_ptr<SessionDescription> remote_description_; | 197 rtc::scoped_ptr<SessionDescription> remote_description_; |
198 }; | 198 }; |
199 | 199 |
200 } // namespace cricket | 200 } // namespace cricket |
201 | 201 |
202 #endif // WEBRTC_P2P_BASE_SESSION_H_ | 202 #endif // WEBRTC_P2P_BASE_SESSION_H_ |
OLD | NEW |