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

Unified Diff: Source/modules/mediastream/RTCCertificate.cpp

Issue 1311853005: RTCCertificate and RTCPeerConnection.generateCertificate added to JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code cleanup, added comments Created 5 years, 3 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: Source/modules/mediastream/RTCCertificate.cpp
diff --git a/Source/modules/mediastream/MediaConstraintsImpl.h b/Source/modules/mediastream/RTCCertificate.cpp
similarity index 77%
copy from Source/modules/mediastream/MediaConstraintsImpl.h
copy to Source/modules/mediastream/RTCCertificate.cpp
index d162c8bd250142a2fc8a24654272c73cdb04a22d..7603e5771ee5578aec44d47c32160aa0423bbb8a 100644
--- a/Source/modules/mediastream/MediaConstraintsImpl.h
+++ b/Source/modules/mediastream/RTCCertificate.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
+ * Copyright (C) 2015 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -28,25 +28,29 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef MediaConstraintsImpl_h
-#define MediaConstraintsImpl_h
-
-#include "public/platform/WebMediaConstraints.h"
+#include "config.h"
+#include "modules/mediastream/RTCCertificate.h"
namespace blink {
-class Dictionary;
-class ExceptionState;
+double RTCCertificate::expires() const
+{
+ return m_certificate->expires();
+}
-namespace MediaConstraintsImpl {
+RTCCertificate::RTCCertificate(WebRTCCertificate* certificate)
+ : m_certificate(certificate)
+{
+}
-WebMediaConstraints create();
-WebMediaConstraints create(const Dictionary&, ExceptionState&);
+RTCCertificate::~RTCCertificate()
+{
+ delete m_certificate;
Guido Urdaneta 2015/09/03 11:07:49 Use OwnPtr and leave this destructor empty.
hbos_chromium 2015/09/03 16:01:37 Done.
+}
+const WebRTCCertificate* RTCCertificate::certificate() const
+{
+ return m_certificate;
}
} // namespace blink
-
-#endif // MediaConstraintsImpl_h
-
-

Powered by Google App Engine
This is Rietveld 408576698