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

Unified Diff: Source/modules/indexeddb/IDBVersionChangeEvent.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/gamepad/GamepadEvent.h ('k') | Source/modules/mediastream/MediaStreamEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBVersionChangeEvent.h
diff --git a/Source/modules/indexeddb/IDBVersionChangeEvent.h b/Source/modules/indexeddb/IDBVersionChangeEvent.h
index 5ef44491211cd39a6ba6026446dd510b6ad853bf..96181512ec903a635ea30b8016a76c52c0d381ce 100644
--- a/Source/modules/indexeddb/IDBVersionChangeEvent.h
+++ b/Source/modules/indexeddb/IDBVersionChangeEvent.h
@@ -47,17 +47,17 @@ struct IDBVersionChangeEventInit : public EventInit {
class IDBVersionChangeEvent FINAL : public Event {
public:
- static PassRefPtr<IDBVersionChangeEvent> create()
+ static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create()
{
- return adoptRef(new IDBVersionChangeEvent());
+ return adoptRefWillBeRefCountedGarbageCollected(new IDBVersionChangeEvent());
}
- static PassRefPtr<IDBVersionChangeEvent> create(const AtomicString& eventType, unsigned long long oldVersion, const Nullable<unsigned long long>& newVersion, blink::WebIDBDataLoss dataLoss = blink::WebIDBDataLossNone, const String& dataLossMessage = String())
+ static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create(const AtomicString& eventType, unsigned long long oldVersion, const Nullable<unsigned long long>& newVersion, blink::WebIDBDataLoss dataLoss = blink::WebIDBDataLossNone, const String& dataLossMessage = String())
{
- return adoptRef(new IDBVersionChangeEvent(eventType, oldVersion, newVersion, dataLoss, dataLossMessage));
+ return adoptRefWillBeRefCountedGarbageCollected(new IDBVersionChangeEvent(eventType, oldVersion, newVersion, dataLoss, dataLossMessage));
}
- static PassRefPtr<IDBVersionChangeEvent> create(const AtomicString& eventType, const IDBVersionChangeEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<IDBVersionChangeEvent> create(const AtomicString& eventType, const IDBVersionChangeEventInit& initializer)
{
- return adoptRef(new IDBVersionChangeEvent(eventType, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new IDBVersionChangeEvent(eventType, initializer));
}
unsigned long long oldVersion() const { return m_oldVersion; }
« no previous file with comments | « Source/modules/gamepad/GamepadEvent.h ('k') | Source/modules/mediastream/MediaStreamEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698