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

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

Issue 1373023002: RTCCertificate, RTCPeerConnection.generateCertificate (WebRTC JavaScript) added. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed jochen's comments Created 5 years, 2 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: third_party/WebKit/Source/modules/mediastream/RTCCertificate.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/RTCErrorCallback.h b/third_party/WebKit/Source/modules/mediastream/RTCCertificate.cpp
similarity index 78%
copy from third_party/WebKit/Source/modules/mediastream/RTCErrorCallback.h
copy to third_party/WebKit/Source/modules/mediastream/RTCCertificate.cpp
index 2c018eec6d5732dd646f3c96ae990751209faecb..da5111e8f80c6a760df154d526f9caa59f6fb922 100644
--- a/third_party/WebKit/Source/modules/mediastream/RTCErrorCallback.h
+++ b/third_party/WebKit/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,21 +28,24 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef RTCErrorCallback_h
-#define RTCErrorCallback_h
-
-#include "platform/heap/Handle.h"
-#include "wtf/text/WTFString.h"
+#include "config.h"
+#include "modules/mediastream/RTCCertificate.h"
namespace blink {
-class RTCErrorCallback : public GarbageCollectedFinalized<RTCErrorCallback> {
-public:
- virtual ~RTCErrorCallback() { }
- DEFINE_INLINE_VIRTUAL_TRACE() { }
- virtual void handleEvent(const String& errorInformation) = 0;
-};
+double RTCCertificate::expires() const
+{
+ return m_certificate->expires();
+}
-} // namespace blink
+RTCCertificate::RTCCertificate(WebRTCCertificate* certificate)
+ : m_certificate(adoptPtr(certificate))
+{
+}
-#endif // RTCErrorCallback_h
+WebRTCCertificate* RTCCertificate::certificateShallowCopy() const
+{
+ return m_certificate->shallowCopy();
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698