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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 rtc::Thread* worker_thread() const { return worker_thread_; } | 233 rtc::Thread* worker_thread() const { return worker_thread_; } |
234 PortAllocator* port_allocator() const { return port_allocator_; } | 234 PortAllocator* port_allocator() const { return port_allocator_; } |
235 | 235 |
236 // The ID of this session. | 236 // The ID of this session. |
237 const std::string& id() const { return sid_; } | 237 const std::string& id() const { return sid_; } |
238 | 238 |
239 // TODO(juberti): This data is largely redundant, as it can now be obtained | 239 // TODO(juberti): This data is largely redundant, as it can now be obtained |
240 // from local/remote_description(). Remove these functions and members. | 240 // from local/remote_description(). Remove these functions and members. |
241 // Returns the XML namespace identifying the type of this session. | 241 // Returns the XML namespace identifying the type of this session. |
242 const std::string& content_type() const { return content_type_; } | 242 const std::string& content_type() const { return content_type_; } |
| 243 // Returns the XML namespace identifying the transport used for this session. |
| 244 const std::string& transport_type() const { return transport_type_; } |
243 | 245 |
244 // Indicates whether we initiated this session. | 246 // Indicates whether we initiated this session. |
245 bool initiator() const { return initiator_; } | 247 bool initiator() const { return initiator_; } |
246 | 248 |
247 // Returns the application-level description given by our client. | 249 // Returns the application-level description given by our client. |
248 // If we are the recipient, this will be NULL until we send an accept. | 250 // If we are the recipient, this will be NULL until we send an accept. |
249 const SessionDescription* local_description() const; | 251 const SessionDescription* local_description() const; |
250 | 252 |
251 // Returns the application-level description given by the other client. | 253 // Returns the application-level description given by the other client. |
252 // If we are the initiator, this will be NULL until we receive an accept. | 254 // If we are the initiator, this will be NULL until we receive an accept. |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 // from |description|. Returns false if it's not available. | 445 // from |description|. Returns false if it's not available. |
444 static bool GetTransportDescription(const SessionDescription* description, | 446 static bool GetTransportDescription(const SessionDescription* description, |
445 const std::string& content_name, | 447 const std::string& content_name, |
446 TransportDescription* info); | 448 TransportDescription* info); |
447 | 449 |
448 rtc::Thread* const signaling_thread_; | 450 rtc::Thread* const signaling_thread_; |
449 rtc::Thread* const worker_thread_; | 451 rtc::Thread* const worker_thread_; |
450 PortAllocator* const port_allocator_; | 452 PortAllocator* const port_allocator_; |
451 const std::string sid_; | 453 const std::string sid_; |
452 const std::string content_type_; | 454 const std::string content_type_; |
| 455 const std::string transport_type_; |
453 bool initiator_; | 456 bool initiator_; |
454 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; | 457 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; |
455 rtc::SSLProtocolVersion ssl_max_version_; | 458 rtc::SSLProtocolVersion ssl_max_version_; |
456 rtc::scoped_ptr<const SessionDescription> local_description_; | 459 rtc::scoped_ptr<const SessionDescription> local_description_; |
457 rtc::scoped_ptr<SessionDescription> remote_description_; | 460 rtc::scoped_ptr<SessionDescription> remote_description_; |
458 uint64 ice_tiebreaker_; | 461 uint64 ice_tiebreaker_; |
459 // This flag will be set to true after the first role switch. This flag | 462 // This flag will be set to true after the first role switch. This flag |
460 // will enable us to stop any role switch during the call. | 463 // will enable us to stop any role switch during the call. |
461 bool role_switch_; | 464 bool role_switch_; |
462 TransportMap transports_; | 465 TransportMap transports_; |
463 | 466 |
464 // Timeout value in milliseconds for which no ICE connection receives | 467 // Timeout value in milliseconds for which no ICE connection receives |
465 // any packets. | 468 // any packets. |
466 int ice_receiving_timeout_; | 469 int ice_receiving_timeout_; |
467 }; | 470 }; |
468 | 471 |
469 } // namespace cricket | 472 } // namespace cricket |
470 | 473 |
471 #endif // WEBRTC_P2P_BASE_SESSION_H_ | 474 #endif // WEBRTC_P2P_BASE_SESSION_H_ |
OLD | NEW |