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

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

Issue 2163403002: Prepare for ICE-renomination (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: . Created 4 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 | « no previous file | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | webrtc/p2p/base/p2ptransportchannel.cc » ('J')
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 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);
};
« no previous file with comments | « no previous file | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | webrtc/p2p/base/p2ptransportchannel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698