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

Unified Diff: webrtc/p2p/base/faketransportcontroller.h

Issue 2025573002: Use continual gathering to restore backup connections (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Merge branch 'master' into enhanced_cg Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/p2p/base/faketransportcontroller.h
diff --git a/webrtc/p2p/base/faketransportcontroller.h b/webrtc/p2p/base/faketransportcontroller.h
index 7b7aec59080ea2a50a5cc7b6dbb70d7265cd9717..6e23f646fe4609879aac4efa8d7c82ea3a4ce253 100644
--- a/webrtc/p2p/base/faketransportcontroller.h
+++ b/webrtc/p2p/base/faketransportcontroller.h
@@ -185,13 +185,10 @@ class FakeTransportChannel : public TransportChannelImpl,
void SetReceiving(bool receiving) { set_receiving(receiving); }
- void SetIceConfig(const IceConfig& config) override {
- receiving_timeout_ = config.receiving_timeout;
- gather_continually_ = config.gather_continually;
- }
+ void SetIceConfig(const IceConfig& config) override { ice_config_ = config; }
- int receiving_timeout() const { return receiving_timeout_; }
- bool gather_continually() const { return gather_continually_; }
+ int receiving_timeout() const { return ice_config_.receiving_timeout; }
+ bool gather_continually() const { return ice_config_.gather_continually(); }
int SendPacket(const char* data,
size_t len,
@@ -324,8 +321,7 @@ class FakeTransportChannel : public TransportChannelImpl,
bool do_dtls_ = false;
std::vector<int> srtp_ciphers_;
int chosen_crypto_suite_ = rtc::SRTP_INVALID_CRYPTO_SUITE;
- int receiving_timeout_ = -1;
- bool gather_continually_ = false;
+ IceConfig ice_config_;
IceRole role_ = ICEROLE_UNKNOWN;
uint64_t tiebreaker_ = 0;
std::string ice_ufrag_;

Powered by Google App Engine
This is Rietveld 408576698