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

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

Issue 1804563002: Refactor WebRTC certificate generation to use WebPassOwnPtr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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.h
diff --git a/third_party/WebKit/Source/modules/mediastream/RTCCertificate.h b/third_party/WebKit/Source/modules/mediastream/RTCCertificate.h
index aeb4617d9f52318112a426431f2ada624b9f091a..d98bba016a2da127fbc5eba3b62d2cb71a93a48f 100644
--- a/third_party/WebKit/Source/modules/mediastream/RTCCertificate.h
+++ b/third_party/WebKit/Source/modules/mediastream/RTCCertificate.h
@@ -34,6 +34,7 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/dom/DOMTimeStamp.h"
#include "platform/heap/GarbageCollected.h"
+#include "public/platform/WebPassOwnPtr.h"
#include "public/platform/WebRTCCertificate.h"
#include "wtf/OwnPtr.h"
@@ -43,11 +44,10 @@ class RTCCertificate final : public GarbageCollectedFinalized<RTCCertificate>, p
DEFINE_WRAPPERTYPEINFO();
public:
// Takes ownership of the certificate.
- RTCCertificate(WebRTCCertificate*);
+ RTCCertificate(WebPassOwnPtr<WebRTCCertificate>);
- // Returns a new WebRTCCertificate shallow copy that the caller is
- // responsible for deleting.
- WebRTCCertificate* certificateShallowCopy() const;
+ // Returns a new WebRTCCertificate shallow copy.
+ WebPassOwnPtr<WebRTCCertificate> certificateShallowCopy() const;
DEFINE_INLINE_TRACE() {}
« no previous file with comments | « content/renderer/media/rtc_certificate_generator.cc ('k') | third_party/WebKit/Source/modules/mediastream/RTCCertificate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698