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

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

Issue 1207563002: Add flakiness check if there is no received packets in a certain period. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Address more comments Created 5 years, 5 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/fakesession.h ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/p2ptransportchannel.h
diff --git a/webrtc/p2p/base/p2ptransportchannel.h b/webrtc/p2p/base/p2ptransportchannel.h
index 11399d0681de0f1309fc427caafaacedfc7ed993..5405a9c0c7ad1a5b59f05e1cdaa28bf6bb936bba 100644
--- a/webrtc/p2p/base/p2ptransportchannel.h
+++ b/webrtc/p2p/base/p2ptransportchannel.h
@@ -85,6 +85,10 @@ class P2PTransportChannel : public TransportChannelImpl,
const Connection* best_connection() const { return best_connection_; }
void set_incoming_only(bool value) { incoming_only_ = value; }
+ // Sets the receiving timeout in milliseconds.
+ // This also sets the check_receiving_delay proportionally.
+ void set_receiving_timeout(int receiving_timeout_ms);
+
// Note: This is only for testing purpose.
// |ports_| should not be changed from outside.
const std::vector<PortInterface*>& ports() { return ports_; }
@@ -150,6 +154,9 @@ class P2PTransportChannel : public TransportChannelImpl,
return false;
}
+ int receiving_timeout() const { return receiving_timeout_; }
+ int check_receiving_delay() const { return check_receiving_delay_; }
+
// Helper method used only in unittest.
rtc::DiffServCodePoint DefaultDscpValue() const;
@@ -213,6 +220,8 @@ class P2PTransportChannel : public TransportChannelImpl,
void OnSort();
void OnPing();
+ void OnCheckReceiving();
+
P2PTransport* transport_;
PortAllocator *allocator_;
rtc::Thread *worker_thread_;
@@ -241,6 +250,9 @@ class P2PTransportChannel : public TransportChannelImpl,
uint64 tiebreaker_;
uint32 remote_candidate_generation_;
+ int check_receiving_delay_;
+ int receiving_timeout_;
+
DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel);
};
« no previous file with comments | « webrtc/p2p/base/fakesession.h ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698