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

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

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.h
diff --git a/Source/modules/serviceworkers/WaitUntilObserver.h b/Source/modules/serviceworkers/WaitUntilObserver.h
index c5f537a7215ddfed8fea894dca9f8eb22a2a4cb4..1a139aaa08e0fdfae5e029f5b334609b4a4e4a89 100644
--- a/Source/modules/serviceworkers/WaitUntilObserver.h
+++ b/Source/modules/serviceworkers/WaitUntilObserver.h
@@ -6,6 +6,7 @@
#define WaitUntilObserver_h
#include "core/dom/ContextLifecycleObserver.h"
+#include "heap/Handle.h"
#include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
#include "wtf/Forward.h"
#include "wtf/RefCounted.h"
@@ -17,10 +18,11 @@ class ScriptValue;
// Created for each InstallPhaseEvent instance.
class WaitUntilObserver FINAL :
- public ContextLifecycleObserver,
- public RefCounted<WaitUntilObserver> {
+ public RefCountedWillBeGarbageCollectedFinalized<WaitUntilObserver>,
+ public ContextLifecycleObserver {
+ DECLARE_GC_INFO;
public:
- static PassRefPtr<WaitUntilObserver> create(ExecutionContext*, int eventID);
+ static PassRefPtrWillBeRawPtr<WaitUntilObserver> create(ExecutionContext*, int eventID);
~WaitUntilObserver();
@@ -32,6 +34,8 @@ public:
// the given promise is resolved or rejected.
void waitUntil(const ScriptValue&);
+ void trace(Visitor*) { }
+
private:
class ThenFunction;

Powered by Google App Engine
This is Rietveld 408576698