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

Unified Diff: Source/modules/serviceworkers/FetchEvent.cpp

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/serviceworkers/FetchEvent.h ('k') | Source/modules/serviceworkers/InstallEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/FetchEvent.cpp
diff --git a/Source/modules/serviceworkers/FetchEvent.cpp b/Source/modules/serviceworkers/FetchEvent.cpp
index dae36a312ac22f25102a2f7887cf78f0e4795109..1aa9cd4c454175b7ddd846a95224b8cb2c15eb8d 100644
--- a/Source/modules/serviceworkers/FetchEvent.cpp
+++ b/Source/modules/serviceworkers/FetchEvent.cpp
@@ -10,14 +10,14 @@
namespace WebCore {
-PassRefPtr<FetchEvent> FetchEvent::create()
+PassRefPtrWillBeRawPtr<FetchEvent> FetchEvent::create()
{
- return adoptRef(new FetchEvent());
+ return adoptRefWillBeRefCountedGarbageCollected(new FetchEvent());
}
-PassRefPtr<FetchEvent> FetchEvent::create(PassRefPtr<RespondWithObserver> observer)
+PassRefPtrWillBeRawPtr<FetchEvent> FetchEvent::create(PassRefPtr<RespondWithObserver> observer)
{
- return adoptRef(new FetchEvent(observer));
+ return adoptRefWillBeRefCountedGarbageCollected(new FetchEvent(observer));
}
void FetchEvent::respondWith(const ScriptValue& value)
@@ -42,4 +42,9 @@ FetchEvent::FetchEvent(PassRefPtr<RespondWithObserver> observer)
ScriptWrappable::init(this);
}
+void FetchEvent::trace(Visitor* visitor)
+{
+ Event::trace(visitor);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/modules/serviceworkers/FetchEvent.h ('k') | Source/modules/serviceworkers/InstallEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698