Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(646)

Side by Side Diff: webrtc/p2p/base/session.h

Issue 1308753003: Revert "Reland "Remove GICE (gone forever!) and PORTALLOCATOR_ENABLE_SHARED_UFRAG (enabled forever)… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: try to solve a failure Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/p2p/base/rawtransportchannel.cc ('k') | webrtc/p2p/base/session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_; }
241 243
242 // Indicates whether we initiated this session. 244 // Indicates whether we initiated this session.
243 bool initiator() const { return initiator_; } 245 bool initiator() const { return initiator_; }
244 246
245 // Returns the application-level description given by our client. 247 // Returns the application-level description given by our client.
246 // If we are the recipient, this will be NULL until we send an accept. 248 // If we are the recipient, this will be NULL until we send an accept.
247 const SessionDescription* local_description() const; 249 const SessionDescription* local_description() const;
248 250
249 // Returns the application-level description given by the other client. 251 // Returns the application-level description given by the other client.
250 // If we are the initiator, this will be NULL until we receive an accept. 252 // 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
436 // from |description|. Returns false if it's not available. 438 // from |description|. Returns false if it's not available.
437 static bool GetTransportDescription(const SessionDescription* description, 439 static bool GetTransportDescription(const SessionDescription* description,
438 const std::string& content_name, 440 const std::string& content_name,
439 TransportDescription* info); 441 TransportDescription* info);
440 442
441 rtc::Thread* const signaling_thread_; 443 rtc::Thread* const signaling_thread_;
442 rtc::Thread* const worker_thread_; 444 rtc::Thread* const worker_thread_;
443 PortAllocator* const port_allocator_; 445 PortAllocator* const port_allocator_;
444 const std::string sid_; 446 const std::string sid_;
445 const std::string content_type_; 447 const std::string content_type_;
448 const std::string transport_type_;
446 bool initiator_; 449 bool initiator_;
447 rtc::SSLIdentity* identity_; 450 rtc::SSLIdentity* identity_;
448 rtc::SSLProtocolVersion ssl_max_version_; 451 rtc::SSLProtocolVersion ssl_max_version_;
449 rtc::scoped_ptr<const SessionDescription> local_description_; 452 rtc::scoped_ptr<const SessionDescription> local_description_;
450 rtc::scoped_ptr<SessionDescription> remote_description_; 453 rtc::scoped_ptr<SessionDescription> remote_description_;
451 uint64 ice_tiebreaker_; 454 uint64 ice_tiebreaker_;
452 // This flag will be set to true after the first role switch. This flag 455 // This flag will be set to true after the first role switch. This flag
453 // will enable us to stop any role switch during the call. 456 // will enable us to stop any role switch during the call.
454 bool role_switch_; 457 bool role_switch_;
455 TransportMap transports_; 458 TransportMap transports_;
456 459
457 // Timeout value in milliseconds for which no ICE connection receives 460 // Timeout value in milliseconds for which no ICE connection receives
458 // any packets. 461 // any packets.
459 int ice_receiving_timeout_; 462 int ice_receiving_timeout_;
460 }; 463 };
461 464
462 } // namespace cricket 465 } // namespace cricket
463 466
464 #endif // WEBRTC_P2P_BASE_SESSION_H_ 467 #endif // WEBRTC_P2P_BASE_SESSION_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/rawtransportchannel.cc ('k') | webrtc/p2p/base/session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698