Index: webrtc/p2p/base/p2ptransportchannel.h |
diff --git a/webrtc/p2p/base/p2ptransportchannel.h b/webrtc/p2p/base/p2ptransportchannel.h |
index 692b09843bf7dbf470cc41a3972bd7a8f8fe03cf..4bfb9dbac7324e2e1418e0e3b094b005e9509170 100644 |
--- a/webrtc/p2p/base/p2ptransportchannel.h |
+++ b/webrtc/p2p/base/p2ptransportchannel.h |
@@ -207,6 +207,11 @@ class P2PTransportChannel : public TransportChannelImpl, |
return remote_candidates_; |
} |
+ // Public for unit tests. |
+ void set_peer_supports_renomination(bool peer_supports_renomination) { |
+ peer_supports_renomination_ = peer_supports_renomination; |
+ } |
pthatcher1
2016/07/28 22:57:25
I think we should make a new method, SetRemoteIceP
honghaiz3
2016/08/03 04:46:56
The struct IceParameters is already there. In fact
pthatcher1
2016/08/03 22:13:25
Oh good, let's add "bool renomination" to it and u
honghaiz3
2016/08/03 23:39:51
Thanks. Will do it in the next CL.
|
+ |
private: |
rtc::Thread* thread() const { return worker_thread_; } |
bool IsGettingPorts() { return allocator_session()->IsGettingPorts(); } |
@@ -403,6 +408,11 @@ class P2PTransportChannel : public TransportChannelImpl, |
IceConfig config_; |
int last_sent_packet_id_ = -1; // -1 indicates no packet was sent before. |
bool started_pinging_ = false; |
+ // Its value will be set in subsequent CLs based on signaling exchange. |
+ bool peer_supports_renomination_ = false; |
+ // The value put in the "nomination" attribute for the next nominated |
+ // connection. A zero-value indicates the connection will not be nominated. |
+ int nominating_value_ = 0; |
pthatcher1
2016/07/28 22:57:25
I'd prefer "nomination" over "nominating_value".
honghaiz3
2016/08/03 04:46:56
I choose nomination_ because it is more consistent
|
RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
}; |