Index: talk/app/webrtc/dtlscertificate.h |
diff --git a/talk/media/webrtc/webrtcvideodecoderfactory.h b/talk/app/webrtc/dtlscertificate.h |
similarity index 67% |
copy from talk/media/webrtc/webrtcvideodecoderfactory.h |
copy to talk/app/webrtc/dtlscertificate.h |
index 6055a236a49c149303b0b66627198f28ce56630d..3cc05f1eee5c9075b903fb67ec30810e74cc9e1b 100644 |
--- a/talk/media/webrtc/webrtcvideodecoderfactory.h |
+++ b/talk/app/webrtc/dtlscertificate.h |
@@ -1,6 +1,6 @@ |
/* |
* libjingle |
Henrik Grunell WebRTC
2015/08/12 14:46:29
I have no idea how the copyright header should loo
hbos
2015/08/14 14:09:38
Acknowledged. It's how all the other "Copyright 20
|
- * Copyright 2013 Google Inc. |
+ * Copyright 2015 Google Inc. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are met: |
@@ -25,29 +25,35 @@ |
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef TALK_MEDIA_WEBRTC_WEBRTCVIDEODECODERFACTORY_H_ |
-#define TALK_MEDIA_WEBRTC_WEBRTCVIDEODECODERFACTORY_H_ |
+#ifndef TALK_APP_WEBRTC_DTLSCERTIFICATE_H_ |
+#define TALK_APP_WEBRTC_DTLSCERTIFICATE_H_ |
+ |
+#include <string> |
#include "webrtc/base/refcount.h" |
-#include "webrtc/common_types.h" |
+#include "webrtc/base/scoped_ptr.h" |
+#include "webrtc/base/scoped_ref_ptr.h" |
+#include "webrtc/base/sslidentity.h" |
namespace webrtc { |
-class VideoDecoder; |
-} |
- |
-namespace cricket { |
-class WebRtcVideoDecoderFactory { |
+class DtlsCertificate : public rtc::RefCountInterface { |
public: |
- // Caller takes the ownership of the returned object and it should be released |
- // by calling DestroyVideoDecoder(). |
- virtual webrtc::VideoDecoder* CreateVideoDecoder( |
- webrtc::VideoCodecType type) = 0; |
- virtual ~WebRtcVideoDecoderFactory() {} |
+ static rtc::scoped_refptr<DtlsCertificate> Create( |
+ rtc::scoped_ptr<rtc::SSLIdentity> identity); |
+ |
+ rtc::SSLIdentity* identity() const; |
Henrik Grunell WebRTC
2015/08/12 14:46:29
Put implementation here since the're simple getter
hbos
2015/08/14 14:09:38
Done.
|
+ double expires() const; |
+ |
+ protected: |
+ DtlsCertificate(rtc::SSLIdentity* identity, double expires); |
+ ~DtlsCertificate() override; |
- virtual void DestroyVideoDecoder(webrtc::VideoDecoder* decoder) = 0; |
+ private: |
+ rtc::scoped_ptr<rtc::SSLIdentity> identity_; |
+ double expires_; |
}; |
-} // namespace cricket |
+} // namespace webrtc |
-#endif // TALK_MEDIA_WEBRTC_WEBRTCVIDEODECODERFACTORY_H_ |
+#endif // TALK_APP_WEBRTC_DTLSCERTIFICATE_H_ |