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

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

Issue 1269843005: Added DtlsCertificate, a ref counted object owning an SSLIdentity (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Merge with master 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
Index: webrtc/p2p/base/transport.cc
diff --git a/webrtc/p2p/base/transport.cc b/webrtc/p2p/base/transport.cc
index b96ae842b445c8b2c4e1215542f325a2fb2e3f7c..4a763c94edc2c9725893c377dc9bbdbe3edacb0d 100644
--- a/webrtc/p2p/base/transport.cc
+++ b/webrtc/p2p/base/transport.cc
@@ -148,15 +148,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<webrtc::DtlsCertificate>& certificate) {
+ worker_thread_->Invoke<void>(Bind(&Transport::SetCertificate_w, this,
+ certificate));
}
-bool Transport::GetIdentity(rtc::SSLIdentity** identity) {
+bool Transport::GetCertificate(
+ rtc::scoped_refptr<webrtc::DtlsCertificate>* 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) {

Powered by Google App Engine
This is Rietveld 408576698