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

Unified Diff: third_party/WebKit/Source/core/workers/AbstractWorker.h

Issue 1744973002: Make AbstractWorker a ContextLifecycleObserver rather than an ActiveDOMObject (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/core/workers/AbstractWorker.h
diff --git a/third_party/WebKit/Source/core/workers/AbstractWorker.h b/third_party/WebKit/Source/core/workers/AbstractWorker.h
index d092c9445dee240f0d1649c9af62bf4a8a5db316..79df5cadf4e9bafcd704bc9191511929b25b2947 100644
--- a/third_party/WebKit/Source/core/workers/AbstractWorker.h
+++ b/third_party/WebKit/Source/core/workers/AbstractWorker.h
@@ -32,7 +32,7 @@
#define AbstractWorker_h
#include "core/CoreExport.h"
-#include "core/dom/ActiveDOMObject.h"
+#include "core/dom/ContextLifecycleObserver.h"
#include "core/events/EventListener.h"
#include "core/events/EventTarget.h"
#include "platform/heap/Handle.h"
@@ -45,12 +45,12 @@ class ExceptionState;
class KURL;
class ExecutionContext;
-class CORE_EXPORT AbstractWorker : public RefCountedGarbageCollectedEventTargetWithInlineData<AbstractWorker>, public ActiveDOMObject {
+class CORE_EXPORT AbstractWorker : public RefCountedGarbageCollectedEventTargetWithInlineData<AbstractWorker>, public ContextLifecycleObserver {
REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(AbstractWorker);
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AbstractWorker);
public:
// EventTarget APIs
- ExecutionContext* executionContext() const final { return ActiveDOMObject::executionContext(); }
+ ExecutionContext* executionContext() const final { return ContextLifecycleObserver::executionContext(); }
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(error);

Powered by Google App Engine
This is Rietveld 408576698