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

Unified Diff: Source/modules/encryptedmedia/MediaKeyMessageEvent.h

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/modules/encryptedmedia/MediaKeyMessageEvent.h
diff --git a/Source/modules/encryptedmedia/MediaKeyMessageEvent.h b/Source/modules/encryptedmedia/MediaKeyMessageEvent.h
index bff2d4b1bb5a289346cd29bb3863416f5a4cb1fc..a1f279f3429294288dc9a521ec77742bd52f2dd4 100644
--- a/Source/modules/encryptedmedia/MediaKeyMessageEvent.h
+++ b/Source/modules/encryptedmedia/MediaKeyMessageEvent.h
@@ -43,14 +43,14 @@ class MediaKeyMessageEvent FINAL : public Event {
public:
virtual ~MediaKeyMessageEvent();
- static PassRefPtr<MediaKeyMessageEvent> create()
+ static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create()
{
- return adoptRef(new MediaKeyMessageEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new MediaKeyMessageEvent);
}
- static PassRefPtr<MediaKeyMessageEvent> create(const AtomicString& type, const MediaKeyMessageEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<MediaKeyMessageEvent> create(const AtomicString& type, const MediaKeyMessageEventInit& initializer)
{
- return adoptRef(new MediaKeyMessageEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new MediaKeyMessageEvent(type, initializer));
}
virtual const AtomicString& interfaceName() const OVERRIDE;
« no previous file with comments | « Source/modules/device_orientation/DeviceOrientationEvent.h ('k') | Source/modules/encryptedmedia/MediaKeyNeededEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698