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