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

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

Issue 1549633004: Fill the remote pwd in ice candidates when an ICE credential is received. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix a type conversion issue. Created 5 years 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 | « webrtc/p2p/base/candidate.h ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »
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 92c0534e7c4edba195586ecd412a49a7b2298850..3927b17659b0d226a029d5717b23868274641003 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,10 @@ class P2PTransportChannel : public TransportChannelImpl,
return remote_ice_parameters_.empty() ? nullptr
: &remote_ice_parameters_.back();
}
+ // Returns the remote IceParameters and generation that match |ufrag|
+ // if found, and returns nullptr otherwise.
+ const IceParameters* FindRemoteIceFromUfrag(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() {
« no previous file with comments | « webrtc/p2p/base/candidate.h ('k') | webrtc/p2p/base/p2ptransportchannel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698