Index: webrtc/p2p/base/p2ptransportchannel.h |
diff --git a/webrtc/p2p/base/p2ptransportchannel.h b/webrtc/p2p/base/p2ptransportchannel.h |
index 692b09843bf7dbf470cc41a3972bd7a8f8fe03cf..e25f222a7d3758781ffc59d7b11a8ebe2d85bb5b 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; |
+ } |
+ |
private: |
rtc::Thread* thread() const { return worker_thread_; } |
bool IsGettingPorts() { return allocator_session()->IsGettingPorts(); } |
@@ -403,6 +408,13 @@ 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. |
+ // Because we are implementing aggressive nomination, set the default value to |
+ // 1. |
+ int nominating_value_ = 1; |
RTC_DISALLOW_COPY_AND_ASSIGN(P2PTransportChannel); |
}; |