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

Unified Diff: talk/app/webrtc/dtlscertificate.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: talk/app/webrtc/dtlscertificate.cc
diff --git a/talk/app/webrtc/objc/RTCAVFoundationVideoSource+Internal.h b/talk/app/webrtc/dtlscertificate.cc
similarity index 76%
copy from talk/app/webrtc/objc/RTCAVFoundationVideoSource+Internal.h
copy to talk/app/webrtc/dtlscertificate.cc
index ffa6629c41cabb77005d43a929adcb9d49cb34a9..580ad950261474cd36a6aab699a642dcafb9f227 100644
--- a/talk/app/webrtc/objc/RTCAVFoundationVideoSource+Internal.h
+++ b/talk/app/webrtc/dtlscertificate.cc
@@ -25,12 +25,23 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#import "RTCAVFoundationVideoSource.h"
+#include "talk/app/webrtc/dtlscertificate.h"
-#include "avfoundationvideocapturer.h"
+#include "webrtc/base/checks.h"
-@interface RTCAVFoundationVideoSource ()
+namespace webrtc {
-@property(nonatomic, readonly) webrtc::AVFoundationVideoCapturer* capturer;
+rtc::scoped_refptr<DtlsCertificate> DtlsCertificate::Create(
+ rtc::scoped_ptr<rtc::SSLIdentity> identity) {
+ return new rtc::RefCountedObject<DtlsCertificate>(identity.release());
+}
-@end
+DtlsCertificate::DtlsCertificate(rtc::SSLIdentity* identity)
+ : identity_(identity) {
+ DCHECK(identity_);
+}
+
+DtlsCertificate::~DtlsCertificate() {
+}
+
+} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698