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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.h

Issue 1876703002: Oilpan: Replace EAGERLY_FINALIZE in EventTarget's hierarchy with pre-finalizers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.h
index a9f546c5b555c7a920decd083d601b34ab8f7a90..43afd9d02b5b5c94278c7467a86b7eaa84cb02b6 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.h
@@ -37,6 +37,7 @@ class ServiceWorkerRegistration final
DEFINE_WRAPPERTYPEINFO();
REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(ServiceWorkerRegistration);
USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerRegistration);
+ USING_PRE_FINALIZER(ServiceWorkerRegistration, dispose);
public:
// EventTarget overrides.
const AtomicString& interfaceName() const override;
@@ -67,12 +68,11 @@ public:
~ServiceWorkerRegistration() override;
- // Eager finalization needed to promptly release owned WebServiceWorkerRegistration.
- EAGERLY_FINALIZE();
DECLARE_VIRTUAL_TRACE();
private:
ServiceWorkerRegistration(ExecutionContext*, PassOwnPtr<WebServiceWorkerRegistration::Handle>);
+ void dispose();
// ActiveScriptWrappable overrides.
bool hasPendingActivity() const final;

Powered by Google App Engine
This is Rietveld 408576698