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

Unified 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, 3 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
« no previous file with comments | « webrtc/p2p/base/dtlstransportchannel.h ('k') | webrtc/p2p/base/p2ptransportchannel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/faketransportcontroller.h
diff --git a/webrtc/p2p/base/faketransportcontroller.h b/webrtc/p2p/base/faketransportcontroller.h
index e356e814b754a1b2b6f88f987b7bd33cb46e943a..826b1a638472d451113da178bd6d58147b83317f 100644
--- a/webrtc/p2p/base/faketransportcontroller.h
+++ b/webrtc/p2p/base/faketransportcontroller.h
@@ -182,11 +182,13 @@ class FakeTransportChannel : public TransportChannelImpl,
void SetReceiving(bool receiving) { set_receiving(receiving); }
- void SetReceivingTimeout(int timeout) override {
- receiving_timeout_ = timeout;
+ void SetIceConfig(const IceConfig& config) override {
+ receiving_timeout_ = config.receiving_timeout_ms;
+ gather_continually_ = config.gather_continually;
}
int receiving_timeout() const { return receiving_timeout_; }
+ bool gather_continually() const { return gather_continually_; }
int SendPacket(const char* data,
size_t len,
@@ -319,6 +321,7 @@ class FakeTransportChannel : public TransportChannelImpl,
std::vector<std::string> srtp_ciphers_;
std::string chosen_srtp_cipher_;
int receiving_timeout_ = -1;
+ bool gather_continually_ = false;
IceRole role_ = ICEROLE_UNKNOWN;
uint64 tiebreaker_ = 0;
std::string ice_ufrag_;
« 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