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 |