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

Unified Diff: webrtc/p2p/base/transportchannel.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/transport_unittest.cc ('k') | webrtc/p2p/base/transportchannel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/transportchannel.h
diff --git a/webrtc/p2p/base/transportchannel.h b/webrtc/p2p/base/transportchannel.h
index 7d0d1f45b2f89c8341694e6e4659b2b5d824a957..15b38eee84b34497546f0a8a093e18ef4199aeb1 100644
--- a/webrtc/p2p/base/transportchannel.h
+++ b/webrtc/p2p/base/transportchannel.h
@@ -46,7 +46,7 @@ class TransportChannel : public sigslot::has_slots<> {
explicit TransportChannel(const std::string& content_name, int component)
: content_name_(content_name),
component_(component),
- readable_(false), writable_(false) {}
+ readable_(false), writable_(false), receiving_(false) {}
virtual ~TransportChannel() {}
// TODO(guoweis) - Make this pure virtual once all subclasses of
@@ -67,10 +67,12 @@ class TransportChannel : public sigslot::has_slots<> {
// TransportManager.
bool readable() const { return readable_; }
bool writable() const { return writable_; }
+ bool receiving() const { return receiving_; }
sigslot::signal1<TransportChannel*> SignalReadableState;
sigslot::signal1<TransportChannel*> SignalWritableState;
// Emitted when the TransportChannel's ability to send has changed.
sigslot::signal1<TransportChannel*> SignalReadyToSend;
+ sigslot::signal1<TransportChannel*> SignalReceivingState;
// Attempts to send the given packet. The return value is < 0 on failure.
// TODO: Remove the default argument once channel code is updated.
@@ -142,6 +144,9 @@ class TransportChannel : public sigslot::has_slots<> {
// Sets the writable state, signaling if necessary.
void set_writable(bool writable);
+ // Sets the receiving state, signaling if necessary.
+ void set_receiving(bool receiving);
+
private:
// Used mostly for debugging.
@@ -149,6 +154,7 @@ class TransportChannel : public sigslot::has_slots<> {
int component_;
bool readable_;
bool writable_;
+ bool receiving_;
DISALLOW_COPY_AND_ASSIGN(TransportChannel);
};
« no previous file with comments | « webrtc/p2p/base/transport_unittest.cc ('k') | webrtc/p2p/base/transportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698