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

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

Issue 153083006: Move serviceworker/ module to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/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()

Powered by Google App Engine
This is Rietveld 408576698