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

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

Issue 1369773003: Add a continual_gathering_policy in PeerConnection RTCConfiguration (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Rebase to master Created 5 years, 2 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/dtlstransportchannel.h ('k') | webrtc/p2p/base/p2ptransportchannel.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 * Copyright 2009 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2009 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 void SetCandidatesGatheringComplete() { 176 void SetCandidatesGatheringComplete() {
177 if (gathering_state_ != kIceGatheringComplete) { 177 if (gathering_state_ != kIceGatheringComplete) {
178 gathering_state_ = kIceGatheringComplete; 178 gathering_state_ = kIceGatheringComplete;
179 SignalGatheringState(this); 179 SignalGatheringState(this);
180 } 180 }
181 } 181 }
182 182
183 void SetReceiving(bool receiving) { set_receiving(receiving); } 183 void SetReceiving(bool receiving) { set_receiving(receiving); }
184 184
185 void SetReceivingTimeout(int timeout) override { 185 void SetIceConfig(const IceConfig& config) override {
186 receiving_timeout_ = timeout; 186 receiving_timeout_ = config.receiving_timeout_ms;
187 gather_continually_ = config.gather_continually;
187 } 188 }
188 189
189 int receiving_timeout() const { return receiving_timeout_; } 190 int receiving_timeout() const { return receiving_timeout_; }
191 bool gather_continually() const { return gather_continually_; }
190 192
191 int SendPacket(const char* data, 193 int SendPacket(const char* data,
192 size_t len, 194 size_t len,
193 const rtc::PacketOptions& options, 195 const rtc::PacketOptions& options,
194 int flags) override { 196 int flags) override {
195 if (state_ != STATE_CONNECTED) { 197 if (state_ != STATE_CONNECTED) {
196 return -1; 198 return -1;
197 } 199 }
198 200
199 if (flags != PF_SRTP_BYPASS && flags != 0) { 201 if (flags != PF_SRTP_BYPASS && flags != 0) {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 FakeTransportChannel* dest_ = nullptr; 314 FakeTransportChannel* dest_ = nullptr;
313 State state_ = STATE_INIT; 315 State state_ = STATE_INIT;
314 bool async_ = false; 316 bool async_ = false;
315 Candidates remote_candidates_; 317 Candidates remote_candidates_;
316 rtc::scoped_refptr<rtc::RTCCertificate> local_cert_; 318 rtc::scoped_refptr<rtc::RTCCertificate> local_cert_;
317 rtc::FakeSSLCertificate* remote_cert_ = nullptr; 319 rtc::FakeSSLCertificate* remote_cert_ = nullptr;
318 bool do_dtls_ = false; 320 bool do_dtls_ = false;
319 std::vector<std::string> srtp_ciphers_; 321 std::vector<std::string> srtp_ciphers_;
320 std::string chosen_srtp_cipher_; 322 std::string chosen_srtp_cipher_;
321 int receiving_timeout_ = -1; 323 int receiving_timeout_ = -1;
324 bool gather_continually_ = false;
322 IceRole role_ = ICEROLE_UNKNOWN; 325 IceRole role_ = ICEROLE_UNKNOWN;
323 uint64 tiebreaker_ = 0; 326 uint64 tiebreaker_ = 0;
324 std::string ice_ufrag_; 327 std::string ice_ufrag_;
325 std::string ice_pwd_; 328 std::string ice_pwd_;
326 std::string remote_ice_ufrag_; 329 std::string remote_ice_ufrag_;
327 std::string remote_ice_pwd_; 330 std::string remote_ice_pwd_;
328 IceMode remote_ice_mode_ = ICEMODE_FULL; 331 IceMode remote_ice_mode_ = ICEMODE_FULL;
329 rtc::SSLProtocolVersion ssl_max_version_ = rtc::SSL_PROTOCOL_DTLS_10; 332 rtc::SSLProtocolVersion ssl_max_version_ = rtc::SSL_PROTOCOL_DTLS_10;
330 rtc::SSLFingerprint dtls_fingerprint_; 333 rtc::SSLFingerprint dtls_fingerprint_;
331 rtc::SSLRole ssl_role_ = rtc::SSL_CLIENT; 334 rtc::SSLRole ssl_role_ = rtc::SSL_CLIENT;
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 } 531 }
529 } 532 }
530 533
531 private: 534 private:
532 bool fail_create_channel_; 535 bool fail_create_channel_;
533 }; 536 };
534 537
535 } // namespace cricket 538 } // namespace cricket
536 539
537 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ 540 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel.h ('k') | webrtc/p2p/base/p2ptransportchannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698