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

Unified Diff: Source/modules/websockets/CloseEvent.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
« no previous file with comments | « Source/modules/webmidi/MIDIMessageEvent.h ('k') | Source/web/tests/CustomEventTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/websockets/CloseEvent.h
diff --git a/Source/modules/websockets/CloseEvent.h b/Source/modules/websockets/CloseEvent.h
index 9457363b9d98fd4f2f06077b9d778fc46159e5e5..80658d403af56eb22e37044b990bcfaa1e25d12b 100644
--- a/Source/modules/websockets/CloseEvent.h
+++ b/Source/modules/websockets/CloseEvent.h
@@ -49,19 +49,19 @@ struct CloseEventInit : public EventInit {
class CloseEvent FINAL : public Event {
public:
- static PassRefPtr<CloseEvent> create()
+ static PassRefPtrWillBeRawPtr<CloseEvent> create()
{
- return adoptRef(new CloseEvent());
+ return adoptRefWillBeRefCountedGarbageCollected(new CloseEvent());
}
- static PassRefPtr<CloseEvent> create(bool wasClean, unsigned short code, const String& reason)
+ static PassRefPtrWillBeRawPtr<CloseEvent> create(bool wasClean, unsigned short code, const String& reason)
{
- return adoptRef(new CloseEvent(wasClean, code, reason));
+ return adoptRefWillBeRefCountedGarbageCollected(new CloseEvent(wasClean, code, reason));
}
- static PassRefPtr<CloseEvent> create(const AtomicString& type, const CloseEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<CloseEvent> create(const AtomicString& type, const CloseEventInit& initializer)
{
- return adoptRef(new CloseEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new CloseEvent(type, initializer));
}
bool wasClean() const { return m_wasClean; }
« no previous file with comments | « Source/modules/webmidi/MIDIMessageEvent.h ('k') | Source/web/tests/CustomEventTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698