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

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

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
Index: webrtc/p2p/base/transport.h
diff --git a/webrtc/p2p/base/transport.h b/webrtc/p2p/base/transport.h
index 4093240f3e0a3221336988d6a4d436a44d615967..4a20a034f44056f12346b876c400417cc7f66708 100644
--- a/webrtc/p2p/base/transport.h
+++ b/webrtc/p2p/base/transport.h
@@ -38,6 +38,7 @@
#include "webrtc/p2p/base/transportinfo.h"
#include "webrtc/base/criticalsection.h"
#include "webrtc/base/messagequeue.h"
+#include "webrtc/base/rtccertificate.h"
#include "webrtc/base/sigslot.h"
#include "webrtc/base/sslstreamadapter.h"
@@ -200,10 +201,11 @@ class Transport : public rtc::MessageHandler,
void SetChannelReceivingTimeout(int timeout_ms);
// Must be called before applying local session description.
- void SetIdentity(rtc::SSLIdentity* identity);
+ void SetCertificate(
+ const rtc::scoped_refptr<rtc::RTCCertificate>& certificate);
// Get a copy of the local identity provided by SetIdentity.
- bool GetIdentity(rtc::SSLIdentity** identity);
+ bool GetCertificate(rtc::scoped_refptr<rtc::RTCCertificate>* certificate);
// Get a copy of the remote certificate in use by the specified channel.
bool GetRemoteCertificate(rtc::SSLCertificate** cert);
@@ -299,9 +301,11 @@ class Transport : public rtc::MessageHandler,
return remote_description_.get();
}
- virtual void SetIdentity_w(rtc::SSLIdentity* identity) {}
+ virtual void SetCertificate_w(
+ const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) {}
- virtual bool GetIdentity_w(rtc::SSLIdentity** identity) {
+ virtual bool GetCertificate_w(
+ rtc::scoped_refptr<rtc::RTCCertificate>* certificate) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698