Index: webrtc/p2p/base/p2ptransportchannel.h |
diff --git a/webrtc/p2p/base/p2ptransportchannel.h b/webrtc/p2p/base/p2ptransportchannel.h |
index 92c0534e7c4edba195586ecd412a49a7b2298850..6efd19b8bb5c780f27c2a02a121d151bda51b9e0 100644 |
--- a/webrtc/p2p/base/p2ptransportchannel.h |
+++ b/webrtc/p2p/base/p2ptransportchannel.h |
@@ -178,6 +178,11 @@ class P2PTransportChannel : public TransportChannelImpl, |
return allocator_sessions_.back(); |
} |
+ // Public for unit tests. |
+ const std::vector<RemoteCandidate>& remote_candidates() const { |
+ return remote_candidates_; |
+ } |
+ |
private: |
rtc::Thread* thread() { return worker_thread_; } |
bool IsGettingPorts() { return allocator_session()->IsGettingPorts(); } |
@@ -247,6 +252,11 @@ class P2PTransportChannel : public TransportChannelImpl, |
return remote_ice_parameters_.empty() ? nullptr |
: &remote_ice_parameters_.back(); |
} |
+ // Returns the IceParameters that match the ufrag, also fill the generation |
pthatcher1
2015/12/28 21:33:59
Might read better as: "Returns the remote IceParam
honghaiz3
2015/12/30 18:59:33
If we use IceParameters* as the argument, we will
pthatcher1
2015/12/30 19:15:44
Good point about the double pointer. I don't thin
|
+ // based on the found index. If not found, return nullptr and assume the next |
+ // (future) generation. |
+ const IceParameters* FindRemoteIce(const std::string& ufrag, |
+ uint32_t* generation); |
// Returns the index of the latest remote ICE parameters, or 0 if no remote |
// ICE parameters have been received. |
uint32_t remote_ice_generation() { |