| Index: webrtc/p2p/base/transportchannel.cc
|
| diff --git a/webrtc/p2p/base/transportchannel.cc b/webrtc/p2p/base/transportchannel.cc
|
| index 5d5a7c98fe314a525345820e3f81f605b8e22076..5fb0eb472cd468c4129b114e035f667107a7b184 100644
|
| --- a/webrtc/p2p/base/transportchannel.cc
|
| +++ b/webrtc/p2p/base/transportchannel.cc
|
| @@ -15,12 +15,20 @@
|
| namespace cricket {
|
|
|
| std::string TransportChannel::ToString() const {
|
| - const char RECEIVING_ABBREV[2] = { '_', 'R' };
|
| + const char READABLE_ABBREV[2] = { '_', 'R' };
|
| const char WRITABLE_ABBREV[2] = { '_', 'W' };
|
| std::stringstream ss;
|
| - ss << "Channel[" << content_name_ << "|" << component_ << "|"
|
| - << RECEIVING_ABBREV[receiving_] << WRITABLE_ABBREV[writable_] << "]";
|
| + ss << "Channel[" << content_name_
|
| + << "|" << component_
|
| + << "|" << READABLE_ABBREV[readable_] << WRITABLE_ABBREV[writable_] << "]";
|
| return ss.str();
|
| +}
|
| +
|
| +void TransportChannel::set_readable(bool readable) {
|
| + if (readable_ != readable) {
|
| + readable_ = readable;
|
| + SignalReadableState(this);
|
| + }
|
| }
|
|
|
| void TransportChannel::set_receiving(bool receiving) {
|
|
|