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

Unified Diff: webrtc/p2p/base/transport.cc

Issue 1312643004: Replaces SSLIdentity* with scoped_refptr<RTCCertificate> in cricket::Transport layer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 4 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
« webrtc/p2p/base/session.cc ('K') | « webrtc/p2p/base/transport.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/transport.cc
diff --git a/webrtc/p2p/base/transport.cc b/webrtc/p2p/base/transport.cc
index 8b68a976b68d2ca8a4c040a6902ac59082761ead..5f28c40e936d02e258957a22997ed485e85134ba 100644
--- a/webrtc/p2p/base/transport.cc
+++ b/webrtc/p2p/base/transport.cc
@@ -126,15 +126,18 @@ void Transport::SetIceRole(IceRole role) {
worker_thread_->Invoke<void>(Bind(&Transport::SetIceRole_w, this, role));
}
-void Transport::SetIdentity(rtc::SSLIdentity* identity) {
- worker_thread_->Invoke<void>(Bind(&Transport::SetIdentity_w, this, identity));
+void Transport::SetCertificate(
+ const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) {
+ worker_thread_->Invoke<void>(Bind(&Transport::SetCertificate_w, this,
+ certificate));
}
-bool Transport::GetIdentity(rtc::SSLIdentity** identity) {
+bool Transport::GetCertificate(
+ rtc::scoped_refptr<rtc::RTCCertificate>* certificate) {
// The identity is set on the worker thread, so for safety it must also be
// acquired on the worker thread.
return worker_thread_->Invoke<bool>(
- Bind(&Transport::GetIdentity_w, this, identity));
+ Bind(&Transport::GetCertificate_w, this, certificate));
}
bool Transport::GetRemoteCertificate(rtc::SSLCertificate** cert) {
« webrtc/p2p/base/session.cc ('K') | « webrtc/p2p/base/transport.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698