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

Side by Side Diff: talk/app/webrtc/webrtcsessiondescriptionfactory.cc

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 | « talk/app/webrtc/webrtcsession_unittest.cc ('k') | talk/session/media/mediasession.h » ('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 * libjingle 2 * libjingle
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // RFC 4566 suggested a Network Time Protocol (NTP) format timestamp 141 // RFC 4566 suggested a Network Time Protocol (NTP) format timestamp
142 // as the session id and session version. To simplify, it should be fine 142 // as the session id and session version. To simplify, it should be fine
143 // to just use a random number as session id and start version from 143 // to just use a random number as session id and start version from
144 // |kInitSessionVersion|. 144 // |kInitSessionVersion|.
145 session_version_(kInitSessionVersion), 145 session_version_(kInitSessionVersion),
146 dtls_identity_store_(dtls_identity_store.Pass()), 146 dtls_identity_store_(dtls_identity_store.Pass()),
147 session_(session), 147 session_(session),
148 session_id_(session_id), 148 session_id_(session_id),
149 data_channel_type_(dct), 149 data_channel_type_(dct),
150 identity_request_state_(IDENTITY_NOT_NEEDED) { 150 identity_request_state_(IDENTITY_NOT_NEEDED) {
151 transport_desc_factory_.set_protocol(cricket::ICEPROTO_RFC5245);
151 session_desc_factory_.set_add_legacy_streams(false); 152 session_desc_factory_.set_add_legacy_streams(false);
152 // SRTP-SDES is disabled if DTLS is on. 153 // SRTP-SDES is disabled if DTLS is on.
153 SetSdesPolicy(dtls_enabled ? cricket::SEC_DISABLED : cricket::SEC_REQUIRED); 154 SetSdesPolicy(dtls_enabled ? cricket::SEC_DISABLED : cricket::SEC_REQUIRED);
154 155
155 // If |dtls_enabled| we must have a |dtls_identity_store_|. 156 // If |dtls_enabled| we must have a |dtls_identity_store_|.
156 DCHECK(!dtls_enabled || dtls_identity_store_); 157 DCHECK(!dtls_enabled || dtls_identity_store_);
157 158
158 if (dtls_enabled && dtls_identity_store_) { 159 if (dtls_enabled && dtls_identity_store_) {
159 identity_request_observer_ = 160 identity_request_observer_ =
160 new rtc::RefCountedObject<WebRtcIdentityRequestObserver>(); 161 new rtc::RefCountedObject<WebRtcIdentityRequestObserver>();
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 if (create_session_description_requests_.front().type == 449 if (create_session_description_requests_.front().type ==
449 CreateSessionDescriptionRequest::kOffer) { 450 CreateSessionDescriptionRequest::kOffer) {
450 InternalCreateOffer(create_session_description_requests_.front()); 451 InternalCreateOffer(create_session_description_requests_.front());
451 } else { 452 } else {
452 InternalCreateAnswer(create_session_description_requests_.front()); 453 InternalCreateAnswer(create_session_description_requests_.front());
453 } 454 }
454 create_session_description_requests_.pop(); 455 create_session_description_requests_.pop();
455 } 456 }
456 } 457 }
457 } // namespace webrtc 458 } // namespace webrtc
OLDNEW
« no previous file with comments | « talk/app/webrtc/webrtcsession_unittest.cc ('k') | talk/session/media/mediasession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698