Index: Source/modules/serviceworkers/WaitUntilObserver.cpp |
diff --git a/Source/modules/serviceworkers/WaitUntilObserver.cpp b/Source/modules/serviceworkers/WaitUntilObserver.cpp |
index 75962f2402a00dc3022a354e34193745334d66b5..44ff4290f5a724af5fd91450dbb28cef44280e6d 100644 |
--- a/Source/modules/serviceworkers/WaitUntilObserver.cpp |
+++ b/Source/modules/serviceworkers/WaitUntilObserver.cpp |
@@ -16,6 +16,8 @@ |
namespace WebCore { |
+DEFINE_GC_INFO(WaitUntilObserver); |
+ |
class WaitUntilObserver::ThenFunction FINAL : public ScriptFunction { |
public: |
enum ResolveType { |
@@ -23,13 +25,13 @@ public: |
Rejected, |
}; |
- static PassOwnPtr<ScriptFunction> create(PassRefPtr<WaitUntilObserver> observer, ResolveType type) |
+ static PassOwnPtr<ScriptFunction> create(PassRefPtrWillBeRawPtr<WaitUntilObserver> observer, ResolveType type) |
{ |
return adoptPtr(new ThenFunction(toIsolate(observer->executionContext()), observer, type)); |
} |
private: |
- ThenFunction(v8::Isolate* isolate, PassRefPtr<WaitUntilObserver> observer, ResolveType type) |
+ ThenFunction(v8::Isolate* isolate, PassRefPtrWillBeRawPtr<WaitUntilObserver> observer, ResolveType type) |
: ScriptFunction(isolate) |
, m_observer(observer) |
, m_resolveType(type) |
@@ -47,13 +49,13 @@ private: |
return value; |
} |
- RefPtr<WaitUntilObserver> m_observer; |
+ RefPtrWillBePersistent<WaitUntilObserver> m_observer; |
ResolveType m_resolveType; |
}; |
-PassRefPtr<WaitUntilObserver> WaitUntilObserver::create(ExecutionContext* context, int eventID) |
+PassRefPtrWillBeRawPtr<WaitUntilObserver> WaitUntilObserver::create(ExecutionContext* context, int eventID) |
{ |
- return adoptRef(new WaitUntilObserver(context, eventID)); |
+ return adoptRefWillBeNoop(new WaitUntilObserver(context, eventID)); |
} |
WaitUntilObserver::~WaitUntilObserver() |